Why Use Applescript?

Applescript Fundamentals

Start with the first three lessons, then move on to the snippets:

Read these posts when you need them:

  • Comments
  • Try – End Try
  • Strings – Paths – Aliases
  • If – Then – Else
  • Repeat Loops

Applescript Snippets

The best way to learn is to jump in. Pick a snippet that does a step that you are trying to automate. Some snippets will then be used as an example in longer scripts. You can create complex scripts by piecing snippets together to automate your boring tasks.

Finder:

 Files:
  • Paths
  • Move a file
  • Rename a file
  • Open a file
  • Delete a file
  • Get a file name
  • Compres (zip) a file
  • Set a variable to multiple files
Folders:
  • Create a folder
  • Delete a folder
  • Move a folder
  • Rename a folder
  • Get a folder name
  • Compress (zip) a folder

Photoshop:

  • Activate
Documents:
  • Create a new document
  • Open a document
  • User Input (dialog box): Choose a file
  • Current document
  • Close a document
Saving:
  • Save a JPEG
  • Save a PSD
  • Save a PNG
  • Save a Photoshop PDF
Layers:
  • Make a new layer
  • Delete a layer
  • Visibility of a layer (on/off)
  • Get the name of a layer
  • Change the name of a layer
  • Move a layer
Image:
  • Selections
  • Copy – Paste
  • Fill
  • Guides

 

Font Book:

 Fonts: