sbusb Posted October 3, 2013 Share Posted October 3, 2013 (edited) Hi I'm looking for a script that opens a new browser tap or window, then goes to an url and lets me use the command+f function to search for a query set in Alfred. Is this possible to make? Best regards Simon Edited October 3, 2013 by sbusb Link to comment
vitor Posted October 3, 2013 Share Posted October 3, 2013 It should be, even if we use a bit of a hack to tell it to send the ⌘+f keystrokes. What is the browser you’ll be using, and is the url in question always the same? Link to comment
sbusb Posted October 3, 2013 Author Share Posted October 3, 2013 It should be, even if we use a bit of a hack to tell it to send the ⌘+f keystrokes. What is the browser you’ll be using, and is the url in question always the same? If possible It should use the default browser, but this is not vital. The URL will always be the same, so no problem on that point. Link to comment
vitor Posted October 3, 2013 Share Posted October 3, 2013 It is possible, yes (link available for 30 days), but not without its flaws. The issue is that since we don't know when the page finishes loading, it may do it after ⌘+f was pressed, which will hide the find box (although you can press the shortcut again, and it should reappear with your query).Change the url on first line of the Run Script to the one you want, and play with the delay amount on the second line, until you get something that works/is acceptable for you, your connection speed, and the website (until it seems to work fine with your specific case, basically). It’s a bit of a hack, since it relies on waiting times and sending key presses, but it should work. Link to comment
sbusb Posted October 3, 2013 Author Share Posted October 3, 2013 @Vítor, works like a charm - Thank you for your help man. It's used for looking up icons on font awesome when I cant remember their class name. Link to comment
vitor Posted October 3, 2013 Share Posted October 3, 2013 There’s actually a workflow for that. 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