Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Open Current Firefox Page in Safari Apps
I've seen a couple scripts to open the current Safari page in Firefox, but none for the other way around. I use this with LaunchBar so I can easily view the page in Safari, then quit with a couple keystrokes. Here's the script:

tell application "Firefox"
	activate
	set FirefoxURL to properties of front window as list
end tell

tell application "Safari"
	activate
	set URL of document 1 to item 3 of FirefoxURL
end tell
[kirkmc adds: Works fine for me.]
    •    
  • Currently 2.25 / 5
  You rated: 3 / 5 (4 votes cast)
 
[9,715 views]  

Open Current Firefox Page in Safari | 9 comments | Create New Account
Click here to return to the 'Open Current Firefox Page in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open Current Firefox Page in Safari
Authored by: reidjazz on Oct 01, '07 07:35:16AM

Even easier...drag the url in Firefox to your Safari icon in the Dock...voila!

---
"When you're finished learning, you're finished."



[ Reply to This | # ]
Open Current Firefox Page in Safari
Authored by: Slinkwyde on Oct 01, '07 08:41:38AM

Presumably a key combo could be assigned to the script. I don't see much need for this though, since I don't know of any sites which support Safari but not Firefox (unlike the other way around). I guess it would be useful if you wanted to see what a page would look like if you weren't logged in to that given website.



[ Reply to This | # ]
Open Current Firefox Page in Safari
Authored by: Toadling on Oct 01, '07 09:39:37AM
The script fails if Safari isn't running or if Safari has no open windows. I use this instead:
tell application "Firefox" to set FirefoxURL to properties of front window as list

tell application "Safari" to open location (item 3 of FirefoxURL)


[ Reply to This | # ]
Open Current Firefox Page in Safari
Authored by: Anonymous on Oct 01, '07 10:26:06AM
There's also the Safari View extension.

[ Reply to This | # ]
Open Current Firefox Page in Safari
Authored by: jedverity on Oct 01, '07 10:44:46AM

Or you can use Quicksilver for this without scripting. Lots of ways, but one would be to set up a trigger:

clipboard contents (proxy object) | open url with... | safari

when you're ready to use it, copy the url and hit the trigger. if you wanted one less step you could have "copy" instead of the clipboard contents and then just select the url and hit the trigger.



[ Reply to This | # ]
Open Current Firefox Page in Safari
Authored by: g7 on Oct 01, '07 02:06:38PM
Easiest way: quit Safari and enable the Safari Debug menu, by typing:

defaults write com.apple.Safari IncludeDebugMenu 1

in Terminal. The Debug menu allows you to open the current webpage in any other browser.

[ Reply to This | # ]
Open Current Firefox Page in Safari
Authored by: dmacd on Oct 02, '07 04:35:37AM

As WCityMike points out just use the Safari View extension. No additional scripts to write, no LaunchBar, QuickSilver or Terminal commands required. Just right click on a page and select 'open in Safari'. Or right click on a link and do the same thing. Seems the easiest solution to me.



[ Reply to This | # ]
Why would you want to?
Authored by: kholburn on Oct 03, '07 02:00:07PM

Why would you want to do this on a regular basis? The only time I ever need to do this is to see MS Windows Media files on certain web sites. Flip4Mac doesn't seem to work with Firefox on some sites at least.

It's rare enough for me that I can cut and paste.



[ Reply to This | # ]
Open Current Firefox Page in Safari
Authored by: BigBadbenny on Apr 12, '11 05:28:32AM

Got this to work with FF4 to Safari with a few changes:

tell application "Firefox" to activate
tell application "System Events"
try
set clipboardBackup to the clipboard
end try
keystroke "l" using command down
keystroke "c" using command down
end tell

tell application "Safari"
activate

open location (the clipboard as text)
end tell

set the clipboard to clipboardBackup

Using the script as I've followed Daring Fireball's tip to disable Flash for FF and Safari. Using scripts found both here and at tuaw.com/2011/03/14/use-applescript-to-open-current-safari-url-in-google-chrome I can open URL's from FF in either Chrome or Safari depending on whether the content is webm, HTML5 or Flash.

Edited on Apr 12, '11 05:29:25AM by BigBadbenny



[ Reply to This | # ]