deadlyhifi Posted February 12, 2014 Share Posted February 12, 2014 I want to open a new Chrome window and set the active tab to the URL that I pass. I'm nearly there, but not quite. The passed URL doesn't get put into the tab, I end up at Google. on alfred_script(q) tell application "Google Chrome" make new window set URL of active tab of window 1 to q end tell end alfred_script Any tips? Link to comment
vitor Posted February 12, 2014 Share Posted February 12, 2014 Are you prefixing your url with http://? If you don’t, it’ll not work, but if you do, your code should work fine as it is. If you don’t want to type it every time (understandably), what you can do is tell your script to prepend that to your query. 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