# Created by Nando Vieira # http://simplesideias.com.br # # Require http://pastie.caboo.se/170796.txt if isRunning("Firefox") then tell application "Firefox" set props to properties of front window as list set theUrl to item 3 of props end tell else if isRunning("Safari") then tell application "Safari" set theUrl to URL of front document end tell else if isRunning("Opera") then tell application "Opera" set props to GetWindowInfo of window 1 set theUrl to item 1 of props end tell else if isRunning("Camino") then tell application "Camino" set theUrl to URL of window 1 end tell end if display dialog theUrl