Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating popup menu



Hi scripters

Does anybody know a way to create a separator in a popup menu on the fly?
I want to do something like this, where the item "-x-" will create the
separator.

Set mPopupContent to {"item 1", "item 2", "-x-", "item 3"}
repeat with mItem in mPopupContent
set mItem to mItem as string
if mItem is "-x-" then
make new menu item at the end of menu items of menu of popup
button mPopup with properties {separator item:true}
else
make new menu item at the end of menu items of menu of popup
button mPopup with properties {title:mItem, enabled:true}
end if
end repeat



--

Luc Naets

PrePress XTensions
Antwerpsestraat 108-116
2640 Mortsel
Tel 03 448 21 51 - Fax 03 448 21 50
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.