Getting an Applescript to launch in XCode project with a menulet

I’ve done well so far with getting a meny in the actual menu bar in the top right, but now I’m stuck. I know the menu in the bar is in fact mine: see here: http://myskitch.com/macman012/picture_1-20070926-191240/ I have it set up in mainmenu.nib to launch the script I have when each menu item is clicked, but I keep getting this funky error: http://myskitch.com/macman012/picture_2-20070926-191352/ NSReceiverEvaluationScriptError: 3(1) My script looks like this at the top http://myskitch.com/macman012/picture_3-20070926-191505/.

Can anyone help?

thanks

I’m doing the exact same thing and was getting the exact same error. I fixed it by linking the Menulet menu item to a button and having the button link to the AppleScript via the “on clicked theObject” …I had to add a window (that I never plan to show) that will have buttons for each of the scripting commands.

If there is a way to get the applescript linked directly to the menulet icon that would be something I want to know as well.