Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
exists: does a window, dialog or palette exist?
Syntax
exists window nameOrNumber
Parameters
window nameOrNumber -- name or number (by stacking order) of the window
Result
true if it exists, false otherwise
Examples
repeat while exists window 1
do menu menu item "Close" of menu "File"
end repeat
if exists window "Untitled"
Notes
- Palettes are often in front of windows, even if they are not visible!
- By default, Player matches only the number of characters specified in the verb parameter. This feature has the benefit of ignoring trailing punctuation, but will occasionally find a false match.
- By default, name matching is not case sensitive.
See Also
get info window
yield time
set complete match
get info menu
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.