Skip to content

Instantly share code, notes, and snippets.

@smsohan
Created January 10, 2011 19:03
Show Gist options
  • Save smsohan/773262 to your computer and use it in GitHub Desktop.
Save smsohan/773262 to your computer and use it in GitHub Desktop.
An AppleScript code that I use to generate the LI tags with blog title, URL and author from NetNewsWire
-- Build text string
set s to "<li>"
tell application "NetNewsWire"
set s to s & "<a href=\"" & (URL of selectedHeadline) & "\">"
set s to s & (title of selectedHeadline) & "</a>"
set s to s & (creator of selectedHeadline)
end tell
set s to s & "</li>"
-- Set the contents to the ClipBoard
tell application "Finder" to set the clipboard to (s as string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment