Skip to content

Instantly share code, notes, and snippets.

@atr000
Created December 17, 2010 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atr000/745049 to your computer and use it in GitHub Desktop.
Save atr000/745049 to your computer and use it in GitHub Desktop.
GetCaminoURL.applescript
-- GetCaminoURL.applescript
-- Created by Thomas Willson on 8/7/09.
-- Copyright 2009 __MyCompanyName__. All rights reserved.
try
tell application "System Events"
set isRunning to ((application processes whose (name is equal to "Camino")) count)
end tell
if isRunning is greater than 0 then
tell application "Camino"
tell browser window 1
set myURL to URL of current tab
end tell
end tell
else
set myURL to "Error"
end if
on error
set myURL to "Error"
end try
return myURL as string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment