Example Automator Action Projects

The following example Xcode projects demonstrate some of the techniques commonly used by developers to create Automator actions. These example projects are built using Xcode 2.0, included with the standard Tiger install DVD or from the Apple Developer Connection.

These example projects are intended only for educational purposes and should not be used to process important data.


EX-01 • Famous Speeches and Documents


This example AppleScript action returns the text of a famous speech or document chosen by the user from a list of pre-installed files. It demonstrates:

  • How to access items stored in the Resource folder of the action bundle.
  • How to generate a popup menu dynamically based upon the names of items in a folder.
  • How to determine the status of the Action Input Control.

Click here to download an installer for this action and its Xcode project files.


EX-02 • Download US Weather Image


This example AppleScript action downloads a weather image from the NOAA website. It demonstrates:

  • Making the action view interactive.
  • Use of the Automator Directory Chooser IB element.

Click here to download an installer for this action and its Xcode project files.


EX-03 • Create SQLite Database


This example AppleScript action creates a new SQLite database using the data passed from the previous action and the list of field names input by the user. It demonstrates:

  • Use of a user-editable table view.
  • Use of the Database Events application to create and parse SQLite database files.

The installer also includes the Generate Presidental Data action to use to generate input for testing this action.

Click here to download an installer for this action and its Xcode project files.

TIP: To parse an existing SQLite database, use the Run AppleScript action to use the Database Events application to query the database and return the results. Click here for an example.


EX-04 • Automated Tagged Database Publishing


These example AppleScript actions populate a tagged Adobe InDesign template with pictures and text from a FileMaker Pro datatbase. They demonstrate:

  • Linking an Action View to "live" data sources and documents.
  • Use of user-editable table views.

The installer includes the action files, releated projects for two actions, and demo files. Requires Adobe InDesign 3.02 and Filemaker Pro 7.

Click here to download an installer for these actions and their Xcode project files.

TIP: Click here for an overview of how these actions automate publishing.


EX-05 • Export to MPEG Audio


This action will open media files passed from the previous action and export them MPEG 4 audio files using the chosen settings. It demonstrates:

  • Passing a chosen folder to the run handler and expanding the relative POSIX path.
  • Use of user-editable table views.
  • Use of the scriptable QuickTime Player.

Click here to download an installer for these actions and its Xcode project files.