Jump to content



Recommended Posts

This is my very frist workflow, it's far from  perfect, but I find it useful to reference simple lists of things with their official links.

I welcome all comments.

This workflow allows you to quickly perform a Google search and fetch the top search result for any selected text, without having to manually open a browser and type in the search query. This can save you time and improve your productivity, especially if you frequently need to perform online searches as part of your work or daily routine.

⚠️⚠️Don't forget to replace your Custom google search API key and CX number in the script ⚠️⚠️



Link to comment
Share on other sites

Welcome @Hare,


You don’t need the #!/usr/bin/env python3 line. Because you’ve already set the language to /usr/bin/python3, that line isn’t doing anything. But it isn’t harmful either.


Another thing which doesn’t stop inclusion but would be an improvement would be adding a background to the icon. As it is it will be hard to see on dark themes. https://font2png.com is a nice source for icons, I recommend adding rounded corners to the background.

However, several other things stop this from being added as is:

  • sys.path.append('/opt/homebrew/lib/python3.10/site-packages'). That assumes an installation on Apple Silicon (not Intel) and only Python 3.10, which isn’t even the latest on Homebrew. The whole script has to work with /usr/bin/python3 alone.
  • You’re requiring people to set their own cx and api_key  in the code. That’s a no-go. In addition to not being documented, many users will have no idea how to do that. Any information a user needs to fill has to be done as Workflow Configuration.
  • This only works with a Hotkey on selected text. It should work with a Universal Action and Keyword Input as well.
  • I’ll need the key details to properly test the workflow. These can—naturally—be temporary ones made for the purpose and provided via DM. They’re only necessary for long enough to ensure everything is working.

Do let me know if you need any clarification. The idea is fun. 

Link to comment
Share on other sites

  • 1 month later...

@Hare Seems you haven’t visited the forum since making the post, but we cannot proceed without the changes. Marking this as complete for now. If the changes are made, please do reply and we can continue with the review.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...