AppleScript for opening the current DevonAgent page in Firefox

I often need to open web pages in Firefox, even though DEVONagent is my favorite and default browser. As DA is very scriptable there is an easy solution to this, without having to manually copy the URL around. The following apple script will do it. Just copy it into ~/Application Support/DEVONagent/Scripts. Make sure the filename ends with ___ and a keyboard short cut, such as Cmd-Alt-Ctrl-o or similar. (here is a version of the script for you to download)

try
    tell application DEVONagent
        if not (exists browser 1) then error No browser windows are open.
        set this_browser to browser 1
        set this_URL to the URL of this_browser
    end tell

    tell application Firefox
        activate
        OpenURL this_URL
    end tell
end try

0 Responses to “AppleScript for opening the current DevonAgent page in Firefox”


  1. No Comments

Leave a Reply