Microsoft KB Archive/142439

{|
 * width="100%"|

OFF: How to Determine Which AppleScript Commands are Supported

 * }

Q142439

-

The information in this article applies to:


 * Microsoft Office 98 Macintosh Edition
 * Microsoft Office for the Macintosh, versions 4.2, 4.2.1

-

SUMMARY
When you use AppleScript, you should know which Apple Events or commands are supported by the programs you are working with. Not all Apple Events are supported by every program.

The "More Information" section of this article explains a method to determine which Apple Events are supported by a program.

MORE INFORMATION
AppleScript is a macro language that ships with Macintosh System 7.5 or later. You can use AppleScript to automate repetitive tasks. A program must have the code to support specific Apple Events; otherwise your AppleScript commands are ignored. To be System 7 compliant, a program must support the following Apple Events:

Open

Print

Quit

Run Use the steps below to determine which events/commands are supported by the program you are working with.


 * 1) Start Script Editor.
 * 2) On the File menu, click Open Dictionary.
 * 3) Navigate to the location of the program you are working with.
 * 4) Highlight the program within the open dialog box.
 * 5) Click the Open button to open the supported event list.

The left side of the Dictionary window lists the events supported by the selected program.

NOTE: You may receive a message similar to the following:

Could not read the dictionary of the program or extension because it is not scriptable.

This is an indication that the selected program does not support the scripting of Apple Events.

If you do not load the AppleScript extension, you will receive the following message:

Could not read the dictionary of the program or extension because I can't connect to the scripting system. Make sure it was installed correctly.