Scripting Additions Guide

CHAPTER 3
Writing Scripting Additions
102 Sample Scripting Addition
/*
This string is used when the user double-clicks on a scripting
addition file. Since it contains nothing that can be opened or
printed, the user gets this in a dialog box (thanks to the
system for making this happen).
*/
resource 'STR ' (-16397) {
"This document can not be opened or printed."
" It extends the functionality of AppleScriptâ„¢ "
"and should be placed in the Scripting Additions"
"folder found in the Extensions folder of your"
" System Folder."
};
/*
Our 'aete' resource. It's here that we describe to
AppleScript the syntax of our scripting addition. Notice that
the comment field contains information about the event and
its parameters. These comments can be displayed by the
Script Editor if the user selects this scripting addition in
the terminology browser invoked when the user chooses the
Open Dictionary menu.
*/
resource 'aete' (0, "Play Sound scripting addition") {
0x0,
-0x70,
english,
roman,
{ /* array Suites: 1 elements */
/* [1] */
"System Object Suite",
"",
'syso',