I can’t seem to figure out how to get a menu item to run one of my handlers from my ApplesDelegate.applescript? When I try and delegate an action like everything else, it only gives me choices (apple system options?) I don’t need.
I’ve looked on Utube but seemed to be no clearer (especially working with Applescript).
Do you need to add another delegate object and code it differently to get it to connect to an action?
Help
Declare the action with syntax
on menuAction_(sender)
and connect the menu item to the First Responder (the red cube) in Interface Builder. In the displayed list select the action.
The benefit of First Responder is that the action is called via the responder chain. A direct connection to the target class is not needed.