e57415e2 Posted February 5, 2013 Share Posted February 5, 2013 Just a simple workflow to open the current Safari tab in Google Chrome. Useful if you, like me, have uninstalled flash, but occasionally need it for sites that doesn’t know about HTML5. As you probably know, Google Chrome comes bundled with flash. Download here or from AlfPT (Open current Safari tab in Chrome). gammawert 1 Link to comment
waffles_n Posted February 5, 2013 Share Posted February 5, 2013 Thanks. This one of those things I wouldn't have thought I needed, but it's actually quite handy. I use Safari as my main browser with full-on third-party script/frame/embed/object blocking via JavaScript Blocker. Sometimes it's easier just to open a page in Chrome than to try to figure out which blocked script is breaking the page. Link to comment
hailalistair Posted February 9, 2013 Share Posted February 9, 2013 This is great! Thanks For me is the exact opposite. I use Safari with all pluings disabled and almost no extension, I must open Chrome for pages that necessitate any plugin or I want to use a particular Chrome extension. Link to comment
gammawert Posted February 18, 2013 Share Posted February 18, 2013 Which changes should be made to the script, to achieve the same result with Firefox? Replacing "Google Chrome" with "Firefox" opens Firefox but not the URL. (I'm a script newbie.) Any ideas? Thank you. Link to comment
aiyo Posted February 18, 2013 Share Posted February 18, 2013 Which changes should be made to the script, to achieve the same result with Firefox? Replacing "Google Chrome" with "Firefox" opens Firefox but not the URL. (I'm a script newbie.) Any ideas? Thank you. You can try to take a look a my workflow Send URL, it can open the url in a variety of apps (and in addition to Safari can also get the url from Chrome, Opera, Camino, iCab and Omniweb the browser just have to be the frontmost application) https://github.com/aiyodk/Alfred-Extensions/raw/master/AlfredApp_2.x/Send-URL/Send-URL.alfredworkflow Link to comment
gammawert Posted February 19, 2013 Share Posted February 19, 2013 You can try to take a look a my workflow Send URL, it can open the url in a variety of apps (and in addition to Safari can also get the url from Chrome, Opera, Camino, iCab and Omniweb the browser just have to be the frontmost application) https://github.com/aiyodk/Alfred-Extensions/raw/master/AlfredApp_2.x/Send-URL/Send-URL.alfredworkflow Perfect. Thank you! Link to comment
russic Posted March 25, 2013 Share Posted March 25, 2013 I registered for the forum just to thank you for this. I prefer Safari as a browser, but when I'm troubleshooting a website I prefer to inspect elements in Chrome. This may only eliminate a few keystrokes, but they were keystrokes that I hated. Kudos. Link to comment
AlfredUserNumber8 Posted April 2, 2013 Share Posted April 2, 2013 Hi, Unless Chrome is already opened, the workflow opens Chrome, but does not open the Safari url/active tab. Is this a problem with the workflow, or something on my end? Link to comment
FiXER Posted April 3, 2013 Share Posted April 3, 2013 @Barrierfreeman that is exactly my problem... hope it will get fixed soon Link to comment
Weaselboy Posted April 3, 2013 Share Posted April 3, 2013 Hi, Unless Chrome is already opened, the workflow opens Chrome, but does not open the Safari url/active tab. Is this a problem with the workflow, or something on my end? I use the below Applescript in a workflow to open the front Safari tab in Chrome and it seems to work fine for me whether Chrome is active or not. I can't recall where I found this, or I would give credit, but I have been using this since the early days of Alfred 1. on alfred_script(q) tell application "Safari" to set currentURL to URL of current tab of window 1 tell application "Google Chrome" activate if not (exists window 1) then make new window tell window 1 if URL of active tab is "chrome://newtab/" then set URL of active tab to currentURL else make new tab with properties {URL:currentURL} end if end tell end tell end alfred_script Link to comment
AlfredUserNumber8 Posted April 4, 2013 Share Posted April 4, 2013 (edited) Thanks for the script, Weaselboy. However, I managed to solve my problem in a similar fashion to you, by using the code from a V1 extension. Specifically, Daniel Kramer's Alfred V1 'open in chrome' extension. property theURL : “” tell application “Safari” set theURL to URL of current tab of window 1 end tell tell application “Google Chrome” if (count of windows) is 0 make new window else make new tab at end of tabs of front window end if delay 1 set URL of active tab of front window to theURL activate end tell If anyone wants to save themselves a couple of minutes, the workflow I cobbled together with the above code is here: http://d.pr/f/fVTW Edited April 4, 2013 by Barrierfreeman Link to comment
Subject22 Posted April 9, 2013 Share Posted April 9, 2013 Thanks Runar! I made a new version of this which behaves a little more intelligently in cases where Safari is closed, or has no windows open, and which posts more informative notifications. 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