ChangingThePresent
The Few, The Proud, The Pradipta 416
My Resume
Web DOC PDF
RTF ODT TXT
powered by emurse

open safari page in firefox

bryan / 24.Feb.2008

I was going to write something in Applescript (after learning Applescript) to open a Safari page in Firefox. I found a somewhat dated example here which I updated slightly, and it works for me YMMV.


tell application "Safari"
	activate
	set my_URL to the URL in document 1
end tell
-- Convert Unicode Text of my_URL to Plain text
set my_URL to «class ktxt» of ((my_URL as string) as record)

tell application "Firefox"
	activate
	Get URL my_URL
end tell

quit

Sorry, comments are closed for this article.

back to top

micro theme by seaofclouds, and powered with Mephisto Hosting by hostingrails.com