Mailing Lists: Apple Mailing Lists

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

dynamic parent and child popup?



The following awake from nib handler successfully populates a popup
button with the names of all the folders on my startup disk:

if the name of theObject is "inDisk" then
tell application "Finder"
set homeFolders to disk "OSX" as text
set unitTypes to name of every folder in folder homeFolders as list
end tell

tell window "Main"
delete every menu item of menu of popup button "inDisk" of box "box2"
make new menu item at the front of menu items of menu of popup
button "inDisk" of box "box2" with properties {title:"choose
folder.....", enabled:true}
repeat with i in my unitTypes
make new menu item at the end of menu items of menu of popup button
"inDisk" of box "box2" with properties {title:i, enabled:true}
end repeat


end tell
end if

Is it possible to populate the popup with parent and child menu items
so I can have access to the names of the folders within folders?

thanks,

Peter
_______________________________________________
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.