AppleScript Basics: Recording Actions

  1. Getting started
  2. AppleScript Basics
  3. Simple Scripts

If an application supports it, recording actions allows you to quickly build up a basic AppleScript. For example, if you go into AppleScript Editor and hit the “Record” button before making a new folder, you might end up with something like:

tell application "Finder"

activate

make new folder at folder "Desktop" of folder "jerry" of folder "Users" of startup disk with properties {name:"untitled folder"}

set name of folder "untitled folder" of folder "Desktop" of folder "jerry" of folder "Users" of startup disk to "Quick New Folder"

end tell

This tells the program (“application”) called “Finder” to first activate, then make a new folder, and then change the name of that folder to “Quick New Folder”.

Unfortunately, most applications don’t support recording; if they do, however, it is often the easiest way to make a new script.

  1. Getting started
  2. AppleScript Basics
  3. Simple Scripts