84

I'm trying to find out if I can get iTunes to do something complex, but don't know what can be scripted.

Is there a way to find out what applescript commands an app will respond to?

2 Answers 2

127

Yes, there is a simple way.

  1. Open the Script Editor app (formerly called AppleScript Editor)
  2. Go to File -> Open Dictionary
  3. Select the app you want to find out more about.

open applescript dictionary screenshot

When you open it, you can browse through the available AppleScript commands for that application and find what you want.

browsing dictionary screenshot

1
  • 4
    If your application doesn't show up in the Dictionary click the 'Browse' button down in the corner there and find the application on disk and open it. If it has Automater actions available they'll load in to your Dictionary then.
    – Ian C.
    Mar 28, 2012 at 21:49
7

Alternately, you can drag an application icon to the Script Editor icon to display its dictionary (if it has one). — via Apple’s AppleScript Language Guide

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .