Language Guide

INDEX
374
Else If clause 191
empty list 49
end reserved word 132
Ends With operator 165, 173–174
Equal operator 163, 168–172
Error command 210–212
error handlers 204–212
defining 206–209
error messages 204–212, 357–362
defined 79
Scriptable Text Editor 355
errors
Apple event 205, 359–360
Apple Event Registry 205, 361
AppleScript 205, 362
application 205
Operating System 205, 358
resignaling in scripts 211–212
returned by commands 79
script 206
Scriptable Text Editor 355
signaling in scripts 210–212
types of 205–206
evaluation
defined 21
of expressions 149
of expressions containing operators 162
"event timed out" error message 217
Every Element reference form 127–128
every reserved word 127
Exists command 99–100
Exit statements 194, 204
explicit Run handlers 244
exponent operator (^) 167
expressions 21–23, 149–181
Boolean 190
evaluation of 149, 162
literal 36
F
fifth reserved word 131
filename 329
File object class 328–329
files, specifying 143–145
file versus alias 144–145
Filter reference form 129–143
first reserved word 131
Floating property 324
Font property 321
fourth reserved word 131
from reserved word 136
Frontmost property 318
front of reserved words 139
front reserved word 131, 132
G
Get command 100–102
Getting Started With AppleScript xv, xviii
given parameter label 230–234
global variables 155, 158
persistence of 255, 259–260
scope of 252–264
Greater Than operator 164, 172–173
Greater Than Or Equal To operator 164
H
handlers 221–264, 267
for application commands 241–242
in script applications 243–252
defined 221
for errors 204–212
for Idle command 248
interrupting 250
for Open command 246–247
for Quit command 249
for Run command 243–246
scope of identifiers declared within 263–264
for stay-open script applications 247–250
syntax summary 302
for user-defined commands 221–240
hyphens attribute 215