Mac OS X,  Mac OS X Server

AppleScript and Paths

When you’re using Applescript to script some events, you’ll need to use a path. For example, if you’re opening an application, you can use the launch application option. When you do so, you’ll need to swap out slashes (/) with colons (:). So, let’s look at Mail.app. The following command in bash would open Mail:

open /Applications/Mail.app

But to run in Applescript, use the following command:

launch application ":Applications:TextEdit.app"

or

tell application ":Applications:TextEdit.app" to launch

Enjoy