|
It is the nature of AppleScript that if a scriptable application or scripting addition on which a compiled script depends is missing, the script might not run, or could refuse to open for reading and editing. To help with this problem, Script Debugger can generate a manifest for your script - a list of the scriptable applications and scripting additions on which it depends. That way, if you intend to move the script to another machine or send it to another user, you’ll be forewarned about the script’s dependencies. To see a script’s dependencies:
The script’s dependencies are listed by category (Application Dependencies and Scripting Addition Dependencies), along with commands that the script directs at each one. For example, this script:
would list the Finder in the Application Dependencies category, and would list StandardAdditions.osax in the Scripting Addition Dependencies category along with the beep command. You can reveal a required application or scripting addition in the Finder. You can also view its dictionary. If you select a command before pressing the Dictionary button, the dictionary displays the information for that command. A special situation can arise when a script depends on a scripting addition which is now missing. The scripting addition’s terminology can’t be resolved during decompilation, so raw Apple event codes appear, and AppleScript has no way to tell you what the trouble is or what scripting addition is missing (because, unlike applications, scripting additions are not explicitly targeted by name). To help with this problem, the manifest also lists Apple events in your script that can’t be resolved (Unknown Apple Events). You can select such an Apple event in the list and Script Debugger will search for the Apple event code in the online database at www.osaxen.com in an attempt to identify the missing scripting addition.
The dialog also lets you export and save as a text file the information it presents, in either XML (Save XML Report) or plain text format (Save Text Report).
|
|||||||||||||||||