Mac: Applescript

From ReceptiveIT
Jump to: navigation, search

I have just started playing with ApplesScript, and I wanted to document some common things that I get asked to do.

Getting Started

You will find the Script Editor in the Utilities menu of OSX

Saving Executable Scripts

When you click on File -> Save As you should save the script with the file format of Application, and it might be a good idea to untick Startup Screen for silent execution

Examples

Opening a network location

tell application "Finder"
	open location "smb://server/share"
end tell