I want to be able to hit the Escape key on my keyboard to stop a Service (that is comprised of a "Run AppleScript" action in Automator) while it is in the middle of running.
Incidentally, if one hits the Escape key while a Service is running, that Service will immediately stop by default. However, five seconds after you hit the Escape key and the Service is terminated, a dialog pops up with an error:
The action “Run AppleScript” encountered an error.
Is it possible to implement the same function, except without the error, perhaps by using AppleScript?