Friday, 17 November 2017

macos - How to specify batch (.command) file current location in Mac OS X

I have a batch file (.command) that I double click to do work. It has dependencies on files in the same folder, but if I double click the .command file it just launches and assumes the current location is /~


How do I find/specify the location of the .command file in the script itself, so I can refer to relative assets?

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...