Created
January 10, 2011 19:03
-
-
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
This file contains 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
-- 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