Restrict automator service to just web browsers

I have an Automator Service which uses AppleScript to copy the URL in the front tab of a web browser. Its works without requiring the user to select the URL in the address bar. Thus, it has no input. I don't want to change that behaviour.


Currently the service appears in the Service Menu of all applications. I want the Service to only appear in the Service Menu of web browsers (ie. Safari, Chrome, Firefox etc).


I suppose I could create a separate Service for each web browser but, that seems ridiculous.


Does anyone know of a way to achieve this ?

Replies

You would need to declare some kind of input (URLs, web content, etc) in order for the system to know when to list the service.

Thanks. I might be able to find a better way of handling the requirement e.g. a browser-specific script.


Cheers.

I found the answer which was simple: open the Service in Automator and choose "Other" in the application drop down box to add other applications. I now have the Service restricted to 5 web browsers.