| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
| References: | |
| >Creating popup menu (From: Luc Naets <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.