Create Mac OS X AppleScript application to call Unix/terminal commands

By Matthew Capewell

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.

One Response to “Create Mac OS X AppleScript application to call Unix/terminal commands”

  1. clay Says:

    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!

Leave a Reply