MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Robertson <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 30 May 2003 19:58:19 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (13 lines)
I'm starting to work with Smile custom dialogs. I can figure out how to get
data into the "menu" dialog items. But I can't figure out how to select a
particular item by script.

If I repopulate the menu, I generally want to select the first item in the
list. How do I do that?

Set menuItemList to {"A","B","C"}
set theMenu to dialog item id 198 of  theDialog
Set menu of theMenu to menuItemList
-- ??? Doesn't work:
Set selection of theMenu to item 1 of menuItemList

ATOM RSS1 RSS2