m3rkury Posted August 18 Posted August 18 Hi, I am having trouble with creating simple workflow that is searching (in my url) for a query. I want this query to be inserted from clipboard. So when I type the keyword for workflow in Alfred and hit enter I would like the browser to open something like: https://myurl.com/searcg?q={clipboard} I have automation that searches for something I put after keyword - it opens : https://myurl.com/searcg?q={query} It works fine but don't know how to get it open with argument from clipboard.
Stephen_C Posted August 18 Posted August 18 Welcome to the forum. I think you'll find this Alfred help page useful in that context: Using Clipboard History Items In Workflows and Snippets. Stephen
FireFingers21 Posted August 19 Posted August 19 @m3rkury You can put an Arg and Vars Utility in between your Keyword and Open URL actions. Setting the "Argument" field to {clipboard:0} will pass the latest item in your clipboard as {query} for your search URL.
m3rkury Posted August 21 Author Posted August 21 @FireFingers21 it didn't work for me The effect is launching search query without any argument It looks like this:
Stephen_C Posted August 21 Posted August 21 (edited) It looks as though you have not connected your keyword to the Arg & Vars and the latter to the Open URL. To see what I mean take a look at this Alfred help page: Getting started: Keyword to Web Search—that shows how to connect objects in the workflow. Stephen Edited August 21 by Stephen_C
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now