I have a shell script that has user execution permission on OS X, but when I double click on it, it opens in a text editor. How can I get it to run by double-clicking it?
Join them; it only takes a minute:
|
|||||||||||||
|
|
Have you tried using the |
|||||||||||||||||||||
|
|
As of OSX 10.10 (Yosemite) and since at least OS X 10.8 (Mountain Lion), the behavior is as follows when you open (double-click) executable scripts from Finder:
|
|||||||||||||||||||||
|
|
Alternatively, you could create a regular Mac OS X application from your script using Platypus |
|||||||||||||||||||||
|
|
No need to use third-party apps such as Platypus. Just create an Apple Script with Script Editor and use the command |
|||||
|
|
If you give your script a |
|||||||||
|