mrchow19910319 Posted January 25, 2017 Share Posted January 25, 2017 As the title said, could someone please (I don't know how to,.,,) create a workflow that let google chrome open a specific url in a new window??? Also safari and firefox too??? Much appreciated. Link to comment
raguay.customct Posted January 26, 2017 Share Posted January 26, 2017 Here is a quick and easy workflow to do what you want. You will have to assign the hotkeys for each one. It allows you to either open the current OSX selection or clipboard in either chrome, firefox, or safari. You can get it here: https://www.dropbox.com/s/8kkpcjbzr2sde05/Open URL with hotkey.alfredworkflow?dl=0 Examine it and you will see that it is very easy to create workflows like this. There was no programming involved. So, go and experiment. mrchow19910319 1 Link to comment
mrchow19910319 Posted January 26, 2017 Author Share Posted January 26, 2017 9 hours ago, raguay.customct said: snip Wow... Thanks!! I just got into a little bit of programming, HTML css and stuff. Trying to get used to mac and hopefully all these small tips and tricks I learn can one day give my workflow a little boost! ! And naming keywords is kind of ... tough.... currently using alt+c/f/s Thanks for the help! Link to comment
mrchow19910319 Posted January 26, 2017 Author Share Posted January 26, 2017 9 hours ago, raguay.customct said: Here is a quick and easy workflow to do what you want. You will have to assign the hotkeys for each one. It allows you to either open the current OSX selection or clipboard in either chrome, firefox, or safari. You can get it here: https://www.dropbox.com/s/8kkpcjbzr2sde05/Open URL with hotkey.alfredworkflow?dl=0 Examine it and you will see that it is very easy to create workflows like this. There was no programming involved. So, go and experiment. Wait... this does not open new chrome window... instead it opens a new tab in the existing window... how am I gonna solve this??? I want it to open an url in a completely new window. Okay... how about this, could you teach me to create a workflow (keyword based, not hotkey based) that opens a new browser tab in a completely new window. And if I hold down command key while doing this, it will open the link in my clipboard. Sorry for being so picky. I'm gonna go google it 1st. Link to comment
mrchow19910319 Posted January 26, 2017 Author Share Posted January 26, 2017 Here is one workflow I made. There is an online article about how to make one workflow that opens a new chrome window. However I tried to change it to open safari and firefox , but all failed... https://drive.google.com/open?id=0B4Oj-Aylh-ymZU5wczVkc2QyRk0 Link to comment
deanishe Posted January 26, 2017 Share Posted January 26, 2017 AppleScript to open a URL in a new Chrome window: -- Open URL in new Chrome window on newChromeWindow(theURL) tell application "Google Chrome" tell (make new window) set URL of active tab to theURL end tell activate end tell end newChromeWindow on run (argv) newChromeWindow("http://www.deanishe.net") end run Link to comment
mrchow19910319 Posted January 27, 2017 Author Share Posted January 27, 2017 4 hours ago, deanishe said: snip er... sorry I tried but did not manage to get it working. Here is what I created, (copied some template online.) CW for new chrome window and when you hold command key , it will go into the incognito mode. I wanna add an option so that I can type in the url also. https://drive.google.com/file/d/0B4Oj-Aylh-ymWkh2UVVrNl9kejQ/view?usp=sharing Link to comment
deanishe Posted January 27, 2017 Share Posted January 27, 2017 You need to set your keyword to "Argument required" (that's the URL), and then pass the URL to Chrome in your AppleScript. Here's a fixed version: https://dl.dropboxusercontent.com/u/10123941/Alfred Workflows/Chrome Window.alfredworkflow Link to comment
mrchow19910319 Posted January 27, 2017 Author Share Posted January 27, 2017 3 hours ago, deanishe said: You need to set your keyword to "Argument required" (that's the URL), and then pass the URL to Chrome in your AppleScript. Here's a fixed version: https://dl.dropboxusercontent.com/u/10123941/Alfred Workflows/Chrome Window.alfredworkflow I can type in the url but it still opens a blank page. Link to comment
Vero Posted January 27, 2017 Share Posted January 27, 2017 @deanishe Nice, I like the cmd modifier for an incognito window - Beats the Chrome workflow I previously had @mrchow19910319 The workflow seems to work fine for me. Are you typing a complete URL (e.g. https://www.alfredapp.com) or a partial one (e.g. alfredapp.com)? Cheers, Vero mrchow19910319 1 Link to comment
mrchow19910319 Posted January 27, 2017 Author Share Posted January 27, 2017 24 minutes ago, Vero said: Thanks... I did not know that I have to key in https:// Link to comment
Sethicus Posted March 3, 2017 Share Posted March 3, 2017 I adapted the applescripts posted in this thread so you can google in a new window (not just open up any url), no https needed https://www.dropbox.com/s/q5845fept41djm7/Google in New Chrome Window.alfredworkflow?dl=0 mrchow19910319 1 Link to comment
mrchow19910319 Posted March 3, 2017 Author Share Posted March 3, 2017 3 hours ago, Sethicus said: I adapted the applescripts posted in this thread so you can google in a new window (not just open up any url), no https needed https://www.dropbox.com/s/q5845fept41djm7/Google in New Chrome Window.alfredworkflow?dl=0 Thanks! Didn't expect someone will visit this thread after so long! Link to comment
Wake&Sea! Posted March 6, 2018 Share Posted March 6, 2018 Is there a way to open new urls in my workflow to a new SAFARI window? This is just for Chrome looks like right? Link to comment
deanishe Posted March 6, 2018 Share Posted March 6, 2018 8 hours ago, Wake&Sea! said: Is there a way to open new urls in my workflow to a new SAFARI window? This is just for Chrome looks like right? In AppleScript: tell application "Safari" to make new document with properties {URL:"https://www.google.com"} OSchrock 1 Link to comment
Tobit Posted October 23, 2018 Share Posted October 23, 2018 On 1/26/2017 at 6:43 AM, raguay.customct said: Here is a quick and easy workflow to do what you want. You will have to assign the hotkeys for each one. It allows you to either open the current OSX selection or clipboard in either chrome, firefox, or safari. You can get it here: https://www.dropbox.com/s/8kkpcjbzr2sde05/Open URL with hotkey.alfredworkflow?dl=0 Examine it and you will see that it is very easy to create workflows like this. There was no programming involved. So, go and experiment. This link is dead, can you update please? 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