Last updated: 17/2/99

Commands

set
set variablePattern to expression

get
get expression [as className ]

copy
( copy | put ) expression ( to | into ) variablePattern

count
count [ each | every ] className ( in | of ) compoundValue
number of compoundValue
number of pluralClassName ( in | of ) referenceToObject ]
length of compoundValue

error
error
[ errorMessage ]
[ number errorNumber ]
[ from offendingObject ]
[ partial result resultList ]
[ to expectedType ]

run
run referenceToApplication


References
arbitrary
some className

every
every className
pluralClassName

filter
referenceToObject whose boolean
referenceToObject where boolean

id
className ID IDvalue

index
className integer
className index integer
( first | front ) className
( second | third | ... | tenth ) className
integer( st | nd | rd | th ) className
( last | back ) className

middle
middle className

name
className string
className
named string

property
propertyLabel

range
every className from reference to reference
pluralClassName from reference to reference
className integer (through | thru ) integer
pluralClassName integer
(through | thru ) integer

relative
className ( before | front of | in front of ) reference
className
( after | back of | in back of ) reference


Containers
in
reference in containerReference
of
reference of containerReference
‘s
containerReference’s reference


Operators
* + - ÷ / ^ div mod and not or

Containment Operators
start[s] with
list (starts with | begins with ) list
string
(starts with | begins with ) string

end[s] with
list ends with list
string
ends with string

contains
list contains list
record
contains record
string
contains string

does not contain
list (does not contain | doesn’t contain ) list
record
(does not contain | doesn’t contain ) record
string
(does not contain | doesn’t contain ) string

is in
list ( is in | is contained by ) list
record
( is in | is contained by ) record
string
( is in | is contained by ) string

Equality Operators
= equals equal to is is equal to
­ does not equal doesn’t equal is not is not equal to isn’t isn’t equal to

Precedence Operators
< comes before less than is less than
> comes after greater than is greater than

Control Statements
tell
tell referenceToObject to statement

tell referenceToObject
[ statement ] ...
end tell

if
if boolean then statement

if boolean then
[ statement ] ...
else if boolean then
[ statement ] ...
else
[ statement ] ...
end if

repeat
repeat [ integer times | while boolean | until boolean ]
[ statement ] ...
end repeat

repeat with variable from integer to integer [ by integer ]
[ statement ] ...
end repeat

repeat with variable in list
[ statement ] ...
end repeat

exit
exit

try
try
[ statement ] ...
on error
[ errorMessage ]
[ number errorNumber ]
[ from offendingObject ]
[ partial result resultList ]
[ to expectedType ]
[ global variable [, variable ] ... ]
[ local variable [, variable ] ... ]
[ statement ] ...
end ( error | try )

considering
considering attribute [, attribute, ... and attribute ] [ but ignoring attribute ...]
[ statement ] ...
end considering

ignoring
ignoring attribute [, attribute, ... and attribute ] [ but considering attribute ...]
[ statement ] ...
end ignoring

with timeout
with timeout of integer second[s]
[ statement ] ...
end timeout

Handlers - Labeled
subroutine define
( on | to ) subroutineName
[ (of | in) directParamaterVariable ]
[ subroutineParamLabel paramVariable ] ...
[ given label : paramVariable [, label : paramVariable ] ...
[ global variable [, variable ] ... ]
[ local variable [, variable ] ... ]
[ statement ] ...
end subroutineName

subroutine call
Needs checking
( on | to ) subroutineName
[ directParamaterVariable ]
[ subroutineParamLabel paramVariable ] ...
[ label : paramVariable [, label : paramVariable ] ...

subroutineParamLabel
The subroutineParamLabel may be one of: above, against, apart from, around, aside from, at, below, beneath, beside, between, by, for, from, instead of, into, on, onto, out of, over, through, thru, under.

Handlers - Position
subroutine define
( on | to ) subroutineName ( [paramVariable [, paramVariable ] ... )
[ statement ] ...
end subroutineName

subroutine call
subroutineName ( [paramVariable [, paramVariable ] ... )

Predefined Variables
it me pi result return space tab

Attribute Constants
(for considering and ignoring statements)

application responses case diacraticals expansion hyphens punctuation white space



Return to Parent Folder