How can I restrict a Service context menu item to appear only when certain text is selected?
-
14-04-2021 - |
Question
I am trying to figure out a way to have a Service show up in a context menu when text is selected, but if and only if that selected text is a URL.
The Automator Service in question will take the selected text and then save it to my "Reading List."
Safari has "Add To Reading List" in its default context menu. But I exclusively use Google Chrome on my Macbook Pro. So, what I've been doing for nearly 2 years now is I manually copy the URL to the clipboard, open Safari, and add the URL to my "Reading List" manually.
Is there a way to restrain a context menu item for a Service so that this context menu item only appears if the selected text begins with "http" (for example), so that I don't have one more unnecessary item cluttering my context menu?