Keyboard Shortcuts

Stupid Newbie Question -

I gathered from the example “Create New Mailing List Mailbox___ctl-m.scpt” script that comes with Mail that all I need to do to add a keyboard shortcut to my script is put “___keys” after the name of the script. However, it doesn’t seem to work right.

I named my script “Check All Mail___opt-cmd-m.scpt”, and under the script menu in Mail, the characters for ‘option command m’ do show up next to the name of the script. However, when I enter that keyboard sequence, it just opens the script in Script Editor. Clicking the script manually from the menu does the right thing and runs it. Do I need to add soemthing to the script to recognize the keyboard sequence? Am I missing something?

I haven’t scripteda lot with Mail, so I’m not sure on this one, but I think you might just need to save the script as an application. Try it and post the results.

Thanks, this helps.

Getting closer… Now it opens the script as an application, but a box pops up that says “Press Run to run this script, or Quit to quit.”

ok, that’s not hard to fix. When you save the script as an application there’s 3 options you can choose: Run Only, Startup Screen, and Stay Open. Deselect them all and then save the script as an application. The startup Screen is what you’re getting, but I don’t think you want any of the other options either.

That’s got it. Thanks very much for the help.