For instance, in the Finder, there is already a service that creates a new Terminal window with the working directory of the currently selected folder. (in Lion and above.)
There is? Where do I find it? Most of the time the Services submenu from Finder is empty. I had to write an AppleScript and package it into an app that's pinned to the Finder toolbar. It works great.
Regarding my service that I can't reliably bind a key shortcut to, it's an Automator unit that works on any application, receives no input, and all it does is run this AppleScript:
Code:
on run {input, parameters}
(* Your script goes here *)
tell application "Terminal"
do script " "
activate
end tell
return input
end run
On all applications, the service is visible from the submenu and works if clicked. On those where the keyboard shortcut works, the shortcut is also visible on the submenu. Of course
maybe if i find another key combo it will eventually work, but it would be lovely to bypass this limitation, if possible.