A function identified as deprecated has been superseded and may become unsupported in the future.
Gets the script format styles currently used by the AppleScript component to display scripts. (Deprecated in Mac OS X v10.5. Use ASGetSourceStyleNames
instead.)
OSAError ASGetSourceStyles ( ComponentInstance scriptingComponent, STHandle *resultingSourceStyles );
A component instance created by a prior call to the Component Manager function OpenDefaultComponent
or OpenComponent
.
A pointer to a handle to a style element array defined by the TextEdit data type TEStyleTable
that defines the styles used for different kinds of AppleScript terms.
A result code. See “Result Codes.”
The ASGetSourceStyles
function returns a style element array that defines the styles used for AppleScript terms. You can use the index constants described in “Source Style Constants” to identify individual styles returned in the resultingSourceStyles parameter. Other AppleScript dialects may define additional styles. When you have finished using the style element array, you must dispose of it.
AppleScript.h
Sets the script format styles used by the AppleScript component to display scripts. (Deprecated in Mac OS X v10.5. Use ASSetSourceAttributes
instead.)
OSAError ASSetSourceStyles ( ComponentInstance scriptingComponent, STHandle sourceStyles );
A component instance created by a prior call to the Component Manager function OpenDefaultComponent
or OpenComponent
.
A handle to a style element array defined by the TextEdit data type TEStyleTable
that defines the styles used for different kinds of AppleScript terms. The style for each kind of term should be identified according to the index constants listed in “Source Style Constants.”
A result code. See “Result Codes.”
The ASSetSourceStyles
function sets the script format styles used to display scripts. If you pass a NULL
handle in the sourceStyles parameter, the AppleScript component uses its default styles.
After you have set the script format styles, you must dispose of the style element array you used to specify them.
AppleScript.h
Gets one or more scripting terminology resources from the specified file. (Deprecated in Mac OS X v10.5. Use OSACopyScriptingDefinition
instead.)
OSAError OSAGetAppTerminology ( ComponentInstance scriptingComponent, SInt32 modeFlags, FSSpec *fileSpec, short terminologyID, Boolean *didLaunch, AEDesc *terminologyList );
Identifies the current scripting component. See the Component Manager documentation for a description of the ComponentInstance
data type.
Information for use by the scripting component. No mode flags are applicable for this function, so pass the value kOSAModeNull
.
Specifies the file to search. See the File Manager documentation for a description of the FSSpec
data type.
A dialect code obtained from a previous call to the OSAGetDialectInfo
function or the OSAGetCurrentDialect
function.
On return, has the value true
if the application's scripting size resource or plist flags indicate that it has a dynamic terminology (in which case, the application will have been launched).
On return, a descriptor list containing zero or more terminology resources. See Apple Event Manager Reference for a description of the AEDesc
data type.
A result code. See “Result Codes.”
ASDebugging.h
© 1993, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-05-07)