Skip to content

Instantly share code, notes, and snippets.

@anderscarling
Created April 26, 2009 11:45
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 anderscarling/102013 to your computer and use it in GitHub Desktop.
Save anderscarling/102013 to your computer and use it in GitHub Desktop.
Turn's tabs open in NewsNetWire into Clippings. Relies on UI Scripting access and default keyboard shortcut.
-- Note, this has proven to be quite unreliable if the tabs are not preloaded and your not quite lucky (which I was my first run, i guess).
tell application "NetNewsWire"
activate
tell application "System Events" to tell process "NetNewsWire" to keystroke "\\" using command down
set repeatTimes to number of tabs - 1
repeat repeatTimes times
tell application "System Events" to tell process "NetNewsWire" to keystroke "}" using command down
tell application "System Events" to tell process "NetNewsWire" to keystroke "s" using {command down, option down}
tell application "System Events" to tell process "NetNewsWire" to keystroke "w" using command down
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment