AppleScript vs. Automator

Peter Rukavina

Can someone smart tell me what the difference between AppleScript and Automator is under Mac OS X? Both appear to exist to allow the automation of applications, but in different ways. Are they related at all?

Comments

Submitted by al o'neill on

Permalink

Automator is a set of guidelines for how your application exposes its scriptable functions so that they can be detected by the automator and used with the drag-and-drop script maker thing.

This is from the WWDC session description for writing scriptable applications:

The easiest way for your application to work with Automator is for it to be scriptable. Most of the effort required involves defining your application’s dictionary, which contains the various commands and classes accessible to AppleScript. Learn how to design a dictionary for a sample application, how to define a well-designed scripting interface for your own application, and how to specify the dictionary in the new sdef format.

Submitted by David Richardson on

Permalink

Think of ‘Automator’ as the Mac GUI equivalent of UNIX command piping. It also allows one to save an Automator action as a compiled script which is available as a Finder contextual menu item. Although this can all be accomplished with applescripts, Automator gets you there much quicker in most cases.

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search