Keyboard shortcuts not working for services

Hi.


I'm using 10.8.3


I've created a service in automator that runs an applescript. It works when I launch it from automator (it's to set a flag and background colour to a message in mail.app).


I followed these instructions, but the keyboard shortcut doesn't work. I've tried it with a number of different shortcuts and none of them work. Any ideas?


1. Create a new Automator workflow. Choose a "Service" template.

2. Configure it so that Service received "no input" in "any application". This will ensure that this service is always visible in any application (you might want to limit the service to a specific app, but I won't for this example)

3. Add a "Run AppleScript" object into the workflow.

4. Enter the Applescript you want

5. Save the Service and name it something descriptive, short, and unique so that it will work as a Keyboard Shortcut.

6. Open the Keyboard Preference and select the "Services" item in the left side of the Keyboard Shortcuts pane.

7. Scroll down to the "General" heading at the bottom of the list on the right side of the Keyboard Shortcuts pane.

8. Find your new Service and activate it (by checking it's checkbox).

9. Assign a keypress shortcut by clicking on rightmost part of that row and pressing the key you want.

Posted on May 20, 2013 2:00 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 13, 2015 9:36 AM

I can confirm this is still a bug in 10.10.5 . The keyboard shortcuts for services don't work in any given app *until* I open the Services menu in the menubar.


I don't actually have to run the Service from the menubar for the shortcut to start working. I just have to show the menu.


However, I have to do it once for each application that's open!


I suspect that the OS X menu framework is somehow delaying the construction of the Services list for each app until the user looks at it, and the keyboard shortcuts aren't registered until that happens.


Soon I'll upgrade to the latest OS X and see if this is still an issue.

16 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Keyboard shortcuts not working for services

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.