Here’s what I’m using to send stuff from NNW to my del.icio.us account:
tell application “NetNewsWire”
set u to (URL of selectedHeadline) & ¬
“&title=” & (title of selectedHeadline) & ¬
“&extended=” & (text 1 thru 100 of (get description of selectedHeadline)) & ¬
“â?¦” & “&tags=” & (subject of selectedHeadline)
end telltell application “System Events”
activate
open location “http://del.icio.us/YOUR_USERNAME?v=3&url=” & u
end tell
If you don’t want the URL to open in the browser after you save your del.icio.us bookmark, use open location “http://del.icio.us/YOUR_USERNAME?v=3&jump=close&url=” & u
Remember to change YOUR_USERNAME to your actual del.icio.us username.
9 Comments
RSS feed for comments on this post.
Sorry, the comment form is closed at this time.

Great tip!
Did you assign a hotkey for this, and if so, what were the specific steps you took to do it?
Rate this comment:
+0 | January 30, 2006 @ 2:25 pm
THANK YOU!!!! This is great…
Two requests…
Right now, it only seems to work when you have the headline selected. If you double-click on a headline to visit the page and want to add it to del.icio.us from there, it doesn’t work.
Would it be very hard to make the script first check for a selectedHeadline, then if it doesn’t exist, check the title of the page you are currently viewing in the browser?
Also, would it be hard to make it so the del.icio.us page loads in NNW instead of your default browser?
Rate this comment:
+0 | January 30, 2006 @ 2:47 pm
Not that I really know much about applescript, but I imagine instead of tell application ,AeuSystem Events,Aeu, you’d use tell application ,AeuNet News Wire,Aeu. As far as hotkeys go, I’m trying out iKeys from http://www.scriptsoftware.com
it’s $30, but it’d be money well spent for me.
Rate this comment:
+0 | January 30, 2006 @ 4:56 pm
I don’t think you can just change “System Events” to NNW. At least I tried it and it didn’t work. Unfortunately, I don’t know much Applescript either.
Rate this comment:
+0 | January 30, 2006 @ 5:30 pm
You should try Quicksilver
Rate this comment:
+0 | January 31, 2006 @ 2:46 pm
Note: Your WordPress install seems to add curly quotes. In order to use this AppleScript it is necessary to first convert all the quotation marks to straight quotes.
Also, your sidebar seems to have shifted to the bottom of the screen. You may wish to check your CSS box styles and ensure that there is enough width for both the main element and the sidebar. (I’m using Firefox.)
Rate this comment:
+0 | February 1, 2006 @ 8:45 am
That’s weird. In my browser, the quotes are straight.
Thanks for the notice on the sidebar, I’ve known about it, but I finally adjusted the width of that div down, so it should be better.
Rate this comment:
+0 | February 1, 2006 @ 9:06 am
[…] | Education | Music ‘as vital as the three Rs’ (tags: news music education) Brewed Fresh Daily -a My NetNewsWire -> del.icio.us applescript -a O […]
Rate this comment:
+0 | February 27, 2006 @ 3:40 pm
You should check out an app I just released in beta, Pukka.
Rate this comment:
+0 | February 28, 2006 @ 7:52 am