PreFab...Player...Documentation...AppleScript...User's Guide...Chapter 5, Verbs...One Verb Per Page...

do menu: choose from a pop-up menu


Syntax

do menu popup item nameOrPosition of popup namePositionOrLocation [of submenu nameOrPosition] [holding modifierKeys] [extra click true/false]


Parameters

popup item nameOrPosition -- name or position number (counting menu dividers) of the pop-up item

of popup namePositionOrLocation -- name, ID number, or location (an {x, y} list) of the pop-up menu

[of submenu nameOrPosition] -- name or position number (counting menu dividers) of the submenu

[holding modifierKeys] -- one or more modifier keys (command, shift, option, control, caps lock), concatenated with "&"

[extra click true/false] -- set to 'false' to disable the extra click (for a slight increase in speed but at the risk of the app not noticing the changed popup value)


Result

true


Examples

do menu popup item "Text" of popup "File Format"
do menu popup item "Plain Text" of popup 13 -- format (in MORE)
do menu popup item "points" of popup {220, 147} -- height

do menu popup item "Text" of popup "File Format" without extra click -- new in 1.5


Notes



Errors

menu or item does not exist or is not enabled


See Also

exists popup
get info popup
set complete match

| Top |


do menu| Prev | Home | Next |click button

Updated on 1/30/99 by Scott S. Lawton (ssl@prefab.com)

Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.

This site built and maintained using Stage Three, a set of custom Frontier scripts.