Applescript: Open Safari URL in Firefox

I’m split between using Safari and Firefox. The former provides a faster and more pleasant browsing experience but sometimes Firefox renders certain pages better, has the indispensible Zotero, and I have a specific kind of integration with del.icio.us that I like better than alternatives available for Safari.

To save me a few keystrokes I wrote the following simple applescript to take the current page open in Safari and open it in a new tab in Firefox:

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

Download this as an applescript or as an applescript compiled application that you can invoke easily from Quicksilver.