tell application "System Events" set myApp to name of first application process whose frontmost is true if myApp is "Camino" then quit else if myApp is "firefox-bin" then tell application "Firefox" set myURL to Çclass curlÈ of window 1 end tell else if myApp is "Safari" then tell application "Safari" set myURL to URL of document 1 end tell else return end if end tell do shell script "open -a camino " & quoted form of myURL