Created
December 17, 2010 14:49
-
-
Save atr000/745049 to your computer and use it in GitHub Desktop.
Revisions
-
atr000 created this gist
Dec 17, 2010 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ -- 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