Created
December 17, 2010 14:49
-
-
Save atr000/745049 to your computer and use it in GitHub Desktop.
GetCaminoURL.applescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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