| |
| |
Preface | |
| |
| |
| |
Introduction to AppleScript | |
| |
| |
| |
AppleScript: An Introduction | |
| |
| |
How Is AppleScript Used? | |
| |
| |
Apple EventsUsing Script Runner with OS XUsing OSA Menu with OS 9 | |
| |
| |
Checking Your AppleScript VersionDiving In | |
| |
| |
| |
Using Script Editor with OS 9 and OS XScript Editor Controls/Commands | |
| |
| |
Scripting the Script Editor | |
| |
| |
| |
AppleScript Language Reference | |
| |
| |
| |
Data Typesaliasbooleanclassconstantdatadatefile specification integerinternational text list number real record reference | |
| |
| |
RGB colorstring | |
| |
| |
Styled Clipboard | |
| |
| |
TextStyled | |
| |
| |
TexttextUnicode | |
| |
| |
Text Unit of Measurement Classes | |
| |
| |
Unit of Measurement Classes | |
| |
| |
| |
Operators &( )*+-/ div >=^[a] reference to and as begin[s] with contains does not contain does not equal ends with is contained by is not contained by modnotor | |
| |
| |
| |
Reference Forms after back before beginning first, second, third, fourth, etc.everyevery - from - to -id last middle name somewhose | |
| |
| |
| |
Variables and Constants | |
| |
| |
Variables | |
| |
| |
Constants and Predefined Variablesall capsall lower case anything application responses ask bold case condensed current application date and time constants diacriticals expanded expansion false hidden hyphensititalicmemissing value mynooutlinepiplainpunctuationresultreturnshadowsmall capsspacestrikethroughsubscriptsuperscripttabtrueunderlineversionwhite spaceyes | |
| |
| |
| |
Flow-Control Statementsconsidering [but ignoring] end [considering]continueerrorexit [repeat]if simple statementif [then] [else if] [else] end [if]ignoring [but considering] end [ignoring]repeat end [repeat]repeat until end [repeat]repeat while end [repeat]repeat with {loop variable} from {integer} to {integer}[by stepVal] end [repeat]repeat with {loop variable} in {list} end [repeat]repeat {integer} times end [repeat]return [return value]tell simple statementtell end [tell]try [on error] [number from partial result | |
| |
| |
| |
Subroutines | |
| |
| |
Subroutines with Positional Parameters | |
| |
| |
Subroutines with Labeled Parametersidle handleropen handlerreopen handlerquit handlerrun handler | |
| |
| |
| |
Script Objects and Libraries | |
| |
| |
Script Objects | |
| |
| |
Libraries | |
| |
| |
| |
Scripting Mac OS 9 Applications | |
| |
| |
| |
Apple Guide and Help Viewer | |
| |
| |
Apple Guide | |
| |
| |
Help Viewer | |
| |
| |
| |
Apple System Profiler | |
| |
| |
Apple System Profiler | |
| |
| |
| |
Keychain Scripting and Apple Verifier | |
| |
| |
Keychain Scripting | |
| |
| |
Apple Verifier | |
| |
| |
| |
Desktop Printer Manager | |
| |
| |
Desktop Print Manager | |
| |
| |
| |
Mac OS 9 Finder Commands | |
| |
| |
Example Finder Scripts | |
| |
| |
Finder Commands | |
| |
| |
| |
Mac OS 9 Finder Classes | |
| |
| |
Finder Classes | |
| |
| |
| |
Network Setup Scripting | |
| |
| |
Network Setup Scripting | |
| |
| |
| |
Scripting Sherlock 2Sherlock 2 | |
| |
| |
| |
URL Access ScriptingURL Access Scripting | |
| |
| |
| |
Scripting Mac OS 9 Control Panels and Extensions | |
| |
| |
| |
Appearance Control PanelAppearance Control Panel | |
| |
| |
| |
Apple Data Detectors ExtensionApple Data Detectors | |
| |
| |
| |
Apple Menu Options Control PanelApple Menu Options | |
| |
| |
| |
Application Switcher ExtensionApplication Switcher | |
| |
| |
| |
ColorSync ExtensionColorSync | |
| |
| |
| |
File Exchange Control PanelFile Exchange | |
| |
| |
| |
File Sharing Control PanelFile Sharing | |
| |
| |
| |
Folder Actions ExtensionFolder Actions | |
| |
| |
| |
FontSync Control Panel and ExtensionFontSync Control PanelFontSync Extension | |
| |
| |
| |
Location Manager Control PanelLocation Manager | |
| |
| |
| |
Memory and Mouse Control Panels | |
| |
| |
Memory Control Panel | |
| |
| |
Mouse Control Panel | |
| |
| |
| |
Speech Listener and Speakable | |
| |
| |
Items Extension | |
| |
| |
Speech Listener Application | |
| |
| |
Speakable | |
| |
| |
Items Extension | |
| |
| |
Embedded Speech Commands | |
| |
| |
| |
Web Sharing Control Panel | |
| |
| |
| |
Scripting the Mac OS X System | |
| |
| |
| |
Scripting the OS X Desktop | |
| |
| |
Working with Files, Folders, Disks, and Windows in OS X | |
| |
| |
| |
Scripting Mail | |
| |
| |
Setting Up an Email Message | |
| |
| |
Exploring the Mail Application Object | |
| |
| |
Getting Information about an Email Account | |
| |
| |
| |
Executing Scripts with the Terminal Apposacompileosalangosascript | |
| |
| |
| |
Scripting Text Edit TextEdit | |
| |
| |
| |
Appendixes | |
| |
| |
| |
Standard | |
| |
| |
Scripting Additions | |
| |
| |
Standard Additions | |
| |
| |
Standard Additions | |
| |
| |
| |
Apple | |
| |
| |
Script Resources | |
| |
| |
Index | |