AppleScript

Introduction

About this CD
What is AppleScript?
What is AppleScript good for?
Companies using AppleScript
What is installed with AppleScript?

AppleScript Basics

What is an Apple Event?
What is OSA?
What is Object Oriented?
Scripting vs. Programming
Different Types of Scripts
Scriptable Applications

Introduction to the Script Editor

What is the Script Editor and where is it located?
Buttons
Event Log
Result Window
AppleScript formatting
Default window size
Saving a Script
Running a Script

Language

Application Dictionaries
Vocabulary
Scripting Addition Dictionaries
Application terminology vs. Core Language

Recording

Recordable applications
Recording
Recording vs. writing

AppleScript Fundamentals (Part 1)

AppleScripts Syntax
Statements
Commands
Expressions
Objects
Ways to refer to an object
Object properties

Tell Statements

Tell statements
Nested tell statements
Cross network tell statements

AppleScript Fundamentals (Part 2)

Get
Set
Data types and classes
Coercion

Variables

What is a variable?
It and Me
Global and Local variables
Result variable

AppleScript Fundamentals (Part 3)

Operators
Commenting
Continuation
If/then/else statements
Repeat loops
Repeat loop example

Scripting applications

Activating an application
Quark Xpress Demo

Finder scripting

Finder as an application
Finder objects
Recording Finder Scripts
Path names and aliases
Finder Demo 1
Finder Demo 2

User interaction

Display dialog
Getting user entered text
Choose file
Choose folder
Choose application
Drag and drop

Error Handling

Compile errors
Try/on error/end try
Beeps and Display Dialogs
Timeouts:
Using the Result Window and Event Log
Stopping a Script with an error number -128
Commenting out lines

AppleScript Fundamentals (Part 4)

Stopping a Script
Properties
Attachable applications

Handlers

Handlers
Declaring values in handlers
Suoutine handlers and Command Handlers
Recursion
Calling handlers from other Scripts

Script objects

Writing Script objects
Running Script objects
Loading Script objects

High powered Scripting

Accessing Hidden capabilities of Applications
Scripting Additions and Faceless Applications
3rd party scripting applications
What to do when an application is not Scriptable
Debugging complex scripts with 3rd party tools
Building applications with FaceSpan
System Scripting Tools

Other uses for AppleScript

Scripting for the web, CGI
Scriptable Speech

Getting started

AppleScript books
AppleScript classes
Web sites
Help modules