-- This script finds out which browser is running
-- gets it's URL and sends it to LittleSnapper
-- and tells it to snap that address
-- By Adam Merrifield <http://www.seydoggy.com>
-- r1 10-08-09 16:15
set appArray to {"Safari", "Firefox", "Opera", "Camino"}
repeat with appName in appArray
if application appName is running then
tell application appName to activate
tell application "System Events"
keystroke "l" using {command down}
keystroke "c" using {command down}
end tell
delay 0.5
set currentURL to the clipboard
end if
end repeat
tell application "LittleSnapper"
activate
open location "littlesnapper://snap/" & currentURL
end tell