Scripting Additions Guide

CHAPTER 2
Scripting Addition Commands
64 Command Definitions
PARAMETERS
scriptObjectVariable
The name of a script object declared previously in the
same script.
Class: Script
referenceToFile
A reference of the form file nameString or alias nameString
(see “Notes”). If this parameter is omitted, Store Script displays
a directory dialog box and requests that the user choose a file in
which to store the script.
Class: Reference
replacementOption
One of the constants ask, yes, or no. The constant ask causes
the Store Script command to display a dialog box asking the user
whether to overwrite the file specified by scriptObjectVariable,
rename it, or cancel the operation. (Displaying this dialog box is
the default if the replacing parameter is omitted.) The constant
yes indicates that you want Store Script to replace the file, and
the constant no indicates that you do not want Store Script to
replace the file if it already exists.
Class: String
RESULT
None
EXAMPLES
This script object is used in the examples that follow:
script DemoStore
property Red: 127
property Green : 128
property Blue : 127
on returnRGB()
return Red & Green & Blue
end return
end script