Created
August 5, 2011 15:10
-
-
Save chaptastic/1127738 to your computer and use it in GitHub Desktop.
Open in Chrome for Reeder
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
property theURL : "" | |
set clipSave to the clipboard | |
tell application "Reeder" | |
activate | |
end tell | |
tell application "System Events" | |
keystroke "c" using {shift down, command down} | |
end tell | |
set theURL to the clipboard | |
set the clipboard to clipSave | |
tell application "Google Chrome" | |
activate | |
if (exists window 1) then | |
set curURL to URL of active tab of window 1 | |
if (curURL is "chrome://newtab/") then | |
tell window 1 to set URL of active tab to theURL | |
else if curURL is theURL then | |
-- bring to front and ignore | |
else | |
open location theURL | |
end if | |
else | |
open location theURL | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment