Important: The information in this document is obsolete and should not be used for new development.
OSASetScriptInfo
You can useOSASetScriptInfoto set information about script data according to the value you pass in theselectorparameter.
FUNCTION OSASetScriptInfo(scriptingComponent: ComponentInstance; scriptID: OSAID; selector: OSType; value: LongInt): OSAError;
scriptingComponent- A component instance created by a prior call to the Component Manager function
OpenDefaultComponentorOpenComponent(see page 10-4).scriptID- The script ID for the script data whose information is to be set.
selector- A value that determines what kind of information
OSASetScriptInfosets. All scripting components can accept this value:CONST kOSAScriptIsModified = 'modi';
- The
kOSAScriptIsModifiedconstant indicates that the count of changes since the script data was loaded or created should be set to the value in thevalueparameter. The AppleScript component provides limited support for this constant.value- The value to set.
DESCRIPTION
TheOSASetScriptInfofunction sets script information according to the value you pass in theselectorparameter. If you use thekOSAScriptIsModifiedconstant,OSASetScriptInfosets a value that indicates how many times the script data has been modified since it was created or passed toOSALoad. Some scripting components may provide additional constants.SPECIAL CONSIDERATIONS
Although you can specifykOSAScriptIsModifiedwhen you are using the AppleScript component without generating an error, the current version of AppleScript doesn't actually set a value for the count of changes since the script data was loaded or created. For more information, see the description ofOSAGetScriptInfothat follows.RESULT CODES