PhilosopherDog Posted May 12, 2021 Share Posted May 12, 2021 (edited) I need to just take the contents of the clipboard and strip off all but the path of a url and copy it back to the clipboard. I could do this by splitting the clipboard's url at a particular point and outputting the second part, or doing a search and replace. I just am not sure how to grab the contents of the clipboard and pipe it into the split utility. It seems to want a {query} which I don't have. Thanx Edited May 12, 2021 by PhilosopherDog Link to comment
giovanni Posted May 12, 2021 Share Posted May 12, 2021 if you are doing your parsing in bash, `pbpaste` will return the clipboard content. Or, in Alfred, you can assign the clipboard content to a variable using an 'Arg and Vars' object (e.g. `myURL`) and then access it with {var:myURL} PhilosopherDog and rl911 2 Link to comment
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