Open Scripting Architecture Reference
PDF
Overview
Functions by Task
Saving and Loading Script Data
Executing and Disposing of Scripts
Setting and Getting Script Information
Manipulating the Active Function
Compiling Scripts
Getting Source Data
Coercing Script Values
Manipulating the Create and Send Functions
Recording Scripts
Executing Scripts in One Step
Copying a Scripting Dictionary as a Scripting Definition File
Manipulating Dialects
Using Script Contexts to Handle Apple Events
Initializing AppleScript
Getting and Setting Styles for Source Data
Getting and Setting the Default Scripting Component
Using Component-Specific Routines
Manipulating Trailers for Generic Storage Descriptor Records
Miscellaneous
Creating, Invoking and Disposing Universal Procedure Pointers
Deprecated Functions
Functions
ASCopySourceAttributes
ASGetAppTerminology
ASGetHandler
ASGetProperty
ASGetSourceStyleNames
ASInit
ASSetHandler
ASSetProperty
ASSetSourceAttributes
DisposeOSAActiveUPP
DisposeOSACreateAppleEventUPP
DisposeOSASendUPP
InvokeOSAActiveUPP
InvokeOSACreateAppleEventUPP
InvokeOSASendUPP
NewOSAActiveUPP
NewOSACreateAppleEventUPP
NewOSASendUPP
OSAAddStorageType
OSAAvailableDialectCodeList
OSAAvailableDialects
OSACoerceFromDesc
OSACoerceToDesc
OSACompile
OSACompileExecute
OSACopyDisplayString
OSACopyID
OSACopyScriptingDefinition
OSACopySourceString
OSADebuggerCreateSession
OSADebuggerDisposeCallFrame
OSADebuggerDisposeSession
OSADebuggerGetBreakpoint
OSADebuggerGetCallFrameState
OSADebuggerGetCurrentCallFrame
OSADebuggerGetDefaultBreakpoint
OSADebuggerGetPreviousCallFrame
OSADebuggerGetSessionState
OSADebuggerGetStatementRanges
OSADebuggerGetVariable
OSADebuggerSessionStep
OSADebuggerSetBreakpoint
OSADebuggerSetVariable
OSADisplay
OSADispose
OSADoEvent
OSADoScript
OSADoScriptFile
OSAExecute
OSAExecuteEvent
OSAGenericToRealID
OSAGetActiveProc
OSAGetCreateProc
OSAGetCurrentDialect
OSAGetDefaultScriptingComponent
OSAGetDialectInfo
OSAGetHandler
OSAGetHandlerNames
OSAGetProperty
OSAGetPropertyNames
OSAGetResumeDispatchProc
OSAGetScriptInfo
OSAGetScriptingComponent
OSAGetScriptingComponentFromStored
OSAGetSendProc
OSAGetSource
OSAGetStorageType
OSAGetSysTerminology
OSALoad
OSALoadExecute
OSALoadExecuteFile
OSALoadFile
OSAMakeContext
OSARealToGenericID
OSARemoveStorageType
OSAScriptError
OSAScriptingComponentName
OSASetActiveProc
OSASetCreateProc
OSASetCurrentDialect
OSASetDefaultScriptingComponent
OSASetDefaultTarget
OSASetHandler
OSASetProperty
OSASetResumeDispatchProc
OSASetScriptInfo
OSASetSendProc
OSAStartRecording
OSAStopRecording
OSAStore
OSAStoreFile
Callbacks
OSAActiveProcPtr
OSACreateAppleEventProcPtr
OSASendProcPtr
Data Types
OSAID
GenericID
OSAError
ScriptingComponentSelector
StatementRange
OSAActiveUPP
OSACreateAppleEventUPP
OSASendUPP
OSADebugCallFrameRef
OSADebugSessionRef
Constants
cClosure
cCoercion
cHandleBreakpoint
Component Flags
Considerations Flags
Considerations Bit Masks
cString
Current Dialect Constants
Date and Time Constants
Default Initialization Values
Dialect Descriptor Constants
Generic Scripting Component Selectors
Global Properties
kASAdd
kASAnd
kASErrorEventCode
kASStartLogEvent
kDialectBundleResType
keyAETarget
keyAppHandledCoercion
keyASPrepositionAt
keyASPrepositionOver
keyOSASourceEnd
keyOSASourceStart
keyProcedureName
keyProgramState
kGenericComponentVersion
kOSAComponentType
kOSAGenericScriptingComponentSubtype
kOSAModeDontDefine
kOSANullScript
kOSARecordedText
kOSAScriptResourceType
kOSASelectComponentSpecificStart
kOSASelectCopyScript
kOSASuite
Mode Flags
Null Mode Flags
OSADebugStepKind
OSAProgramState
OSAScriptError Selectors
Recording Constants
Resume Dispatch Function Constants
Script Document File Type
Script Information Selectors
Source Constants
Source Style Constants
typeAppleScript
typeOSAErrorRange
typeOSAGenericStorage
typeStatementRange
Weekdays
Result Codes
Appendix A: Deprecated Open Scripting Architecture Functions
Deprecated in Mac OS X v10.5
ASGetSourceStyles
ASSetSourceStyles
OSAGetAppTerminology
Revision History
Index