Run AppleScript through Cocoa Application in XCode


I’ve been googling around and haven’t been able to find a simple way to run an AppleScript with Cocoa. I have an AppleScript app with a Menulet.h and .m file. What code would I use to simple run the script? I’ve seen something like NSApplescript* but I’m lost.


NSAppleScript is sufficient for most tasks. e.g.

If you want more specific advice, you’ll need to provide more info about what you need it to do.

Is this from Stadsman’s NSStatusItem solution that I pointed you to?

Yes, Bruce, it is. Thanks for that link, it helped a lot!