Hi All,
I have a few terminal commands that I want to package up into an app - nothing fancy or clever, just to change permissions on a .sh file then execute it..
I've read that Apple Script editor will let me do this then save as an app - is this right?
I've so far got (taking into account the .sh will be on the desktop)
tell application "Terminal"
do script with command "cd /Users/<username>/Desktop; ./install.sh
end tell
In terminal I'd normally do chmod +x on the file first... (using Sudo) - how can I add that into the app?
My next question will be how can I make this an all in one .app so that the install.sh file lives inside the package?
Thanks!
Phil
I have a few terminal commands that I want to package up into an app - nothing fancy or clever, just to change permissions on a .sh file then execute it..
I've read that Apple Script editor will let me do this then save as an app - is this right?
I've so far got (taking into account the .sh will be on the desktop)
tell application "Terminal"
do script with command "cd /Users/<username>/Desktop; ./install.sh
end tell
In terminal I'd normally do chmod +x on the file first... (using Sudo) - how can I add that into the app?
My next question will be how can I make this an all in one .app so that the install.sh file lives inside the package?
Thanks!
Phil