To do this, load up the AppleScript editor and enter the following:
do shell script "..."
Replacing … with the command that you wish to run.
If the command requires administrator privileges then append the command with ‘with administrator privileges’ and then any subsequent commands with ‘and password’. For example:
do shell script "..." with administrator privileges
do shell script "..." and password
do shell script "..." and password
When the script is complete and tested save it as an ‘Application’ and tick the ‘Run-only’ checkbox.
January 30, 2007 at 9:38 pm
I am new to using applescript and couldn’t figure out how to run a command in terminal to launch Opera into Kioskmode, but this did it! How simple! Thanks a million for posting this!