Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 10 - Scripting Components / Scripting Components Reference
AppleScript Component Routines / Getting and Setting Styles for Source Data


ASGetSourceStyleNames

You can use the ASGetSourceStyleNames function to obtain a list of style names that are each formatted according to the script format styles currently used by the AppleScript component.

FUNCTION ASGetSourceStyleNames 
                  (scriptingComponent: ComponentInstance;
                   modeFlags: LongInt; 
                   VAR resultingSourceStyleNameList: AEDescList)
                   : OSAError;
scriptingComponent
A component instance created by a prior call to the Component Manager function OpenDefaultComponent or OpenComponent (see page 10-4).
modeFlags
Reserved for future use. Set to kOSAModeNull.
resultingSourceStyleNameList
List of style names (for example, "Uncompiled Text," "Normal Text") that are each formatted according to the current script format styles. The order of the names corresponds to the order of the source style constants listed for ASGetSourceStyles on page 10-81.
RESULT CODES
noErr0No error
errOSASystemError-1750General scripting system error
badComponentInstance$80008001Invalid component instance

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996