image

Dictionaries Inspector

image

The dictionaries inspector lists applications that Script Debugger has “met” in various ways — the dictionaries list. This list appears in several places in the interface — for example, in a dictionary window, and in shortened form (without the All category) in the File > Open Dictionary menu and the Edit > Paste Tell menu.

The dictionaries inspector is in the Inspectors tab of a script window. To see the dictionaries inspector:

image

To open an application’s dictionary:

Hold Option to open the dictionary in a new dictionary window.

To insert a tell block targeting an application:

Hold Option to paste into in a new script window.

Alternatively, drag the name of an application from the dictionaries inspector into a script window.

To insert a using terms from block targeting an application:

Hold Option to paste into in a new script window.

To learn an application’s location:

To show an application in the Finder:

To bring an application to the front:

To quit a running application:

You can also search dictionaries from the dictionaries inspector.

You may be curious about how the All section of the dictionaries list is automatically populated. Basically, an application is added to the list automatically in the following circumstances:

  • When Script Debugger is launched. Script Debugger searches your computer for scriptable applications, and adds them to the list if they have ever run. (A dictionary preference, “Only search Applications folder for dictionaries”, allows you to limit the scope of this search.)
  • When an application’s dictionary is explicitly opened.
  • When an object specifier is explored (so, for example, when you target an application in a script and it returns an object as the script’s result).
  • When a tell block targeting that application is detected in your code.

Running a script targeting an application might not add that application automatically to the list. The reason is that AppleScript and Script Debugger are two different entities, so AppleScript can run a script without Script Debugger seeing and analyzing the contents of that script.



image
Open Any Dictionary Window