I can't figure out how to select items in a cascading menu button. I can get a simple menu button working just fine, and I can build a cascading menu - but writing the code for the extra submenu layer has thrown me.
This is a standard menu button from the dictionary
Code: Select all
on menuPick theMenuItem
switch theMenuItem
case "Name of First Item"
-- do stuff here for first item
break
case "Name of Second Item"
-- do stuff here for second item
break
case "Name of Third Item"
-- do stuff here for third item
break
end switch
end menuPick
Cheers