unclebarry Posted May 8, 2013 Share Posted May 8, 2013 I'd like to make a Custom Search for www.peekyou.com but there needs to be an underscore between words. I have no idea how to do this. Can somebody help? Link to comment
Tyler Eich Posted May 8, 2013 Share Posted May 8, 2013 I'd like to make a Custom Search for www.peekyou.com but there needs to be an underscore between words. I have no idea how to do this. Can somebody help? I can't make a custom search, but I can make a workflow Try this: http://cl.ly/012H0P172r3y Link to comment
ctwise Posted May 8, 2013 Share Posted May 8, 2013 I'd like to make a Custom Search for www.peekyou.com but there needs to be an underscore between words. I have no idea how to do this. Can somebody help? 1. Create an empty workflow. 2. Create a keyword input, use 'peekyou' or whatever else you like as the keyword. 3. Add a script action, the default is a bash script, that's what you want. 4. Paste this as the script: echo "{query}" | sed -e "s/ /_/g" | tr -d '\n' 5. Check escape double quotes and nothing else. 6. Add a script output, bash again. 7. Paste this as the script: open "http://peekyou.com/{query}" 8. Escape double quotes again. 9. Connect the keyword to the first script and the first script to the second script. Done. 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