Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
exists: does a pop-up menu exist?
Syntax
exists popup nameOrID
Parameters
popup nameOrID -- name or ID number of the pop-up menu
Result
true if it exists, false otherwise
Examples
if exists popup "Format"
if exists popup 12 -- by ID
Notes
- Many dialog items will return false even though they look and act like pop-ups.
- For pop-ups that are implemented as "user items" rather than true pop-ups, use exists dialog item. Player's balloon help will show the object class (type).
- This verb cannot check for the existence of pop-up items, only the pop-up menu.
- For nested hierarchical menus, use the form "submenu;subsubmenu".
- 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 menu
do menu
yield time
set complete match
exists button
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.