|
|
|
Forum Member
Group: Forum Members
Last Login: 10/1/2008 8:28:39 PM
Posts: 3,
Visits: 4
|
|
Hey, I looked a few places (including here) for this information but didn't find it anywhere... I wanted to be able to take the web article I was reading in NetNewsWire (best RSS reader) and post it into Evernote (kickass note taking tool). Evernote doesn't seem Applescripty, so it didn't seem easy to do it directly to the Mac client, but they do have the Javascript bookmarklet. So a little reverse-engineering of the Javascript in the bookmarklet and some googling and I came up with this very short Applescript. Works for me... I put it in the script menu on NetNewsWire.
Hope this helps somebody...
--Ernie
==== cut below here and put into Script Editor ====
-- Clips active web tab from NetNewsWire to Evernote
-- (c) 2008 Ernie Soffronoff
-- ernie.s@gmail.com
tell application "NetNewsWire"
set urlsList to URLs of tabs
set ixCurrentTab to index of selected tab
set titleList to titles of tabs
set the_url to "http://www.evernote.com/clip.action?url=" & (item (ixCurrentTab + 1) of urlsList) & "&title=" & (item (ixCurrentTab + 1) of titleList)
end tell
tell application "Safari"
make new document with properties {URL:the_url}
end tell
|
|
|
|
|
NewsGator
Group: Administrators
Last Login: Today @ 8:45:32 PM
Posts: 1,031,
Visits: 1,940
|
|
| Very cool! Thanks for posting that.
|
|
|
|
|
Forum Member
Group: Forum Members
Last Login: 10/1/2008 8:28:39 PM
Posts: 3,
Visits: 4
|
|
Annnnnnd.... it's broken. They changed the code for the Evernote web clipper the very night I wrote the script. The web clipper is nicer, sure, but it busted my script.
How did I find out about it? The feed of the Evernote blog in NetNewsWire, of course.
Crap. These are such complementary applications (both have Mac/PC/Web clients, both keep all of 'em in sync automagically over the web, both are enormous productivity boosters) that they're a natural fit to have some smooth linkage between them.
Well, maybe I'll have time to look at it again soon to see if I can figure it out again.
--Ernie
|
|
|
|
|
Forum Member
Group: Forum Members
Last Login: 10/1/2008 8:28:39 PM
Posts: 3,
Visits: 4
|
|
The new version of Evernote (1.1.5) now has Applescript support, making this a whole lot easier... no need to hack it through the old web-based clipper. Now faster and more direct...
-- Clips active web tab from NetNewsWire to Evernote
-- (c) 2008 Ernie Soffronoff
-- ernie.s@gmail.com
tell application "NetNewsWire"
set urlsList to URLs of tabs
set ixCurrentTab to index of selected tab
set titleList to titles of tabs
end tell
tell application "Evernote"
create note from url (item (ixCurrentTab + 1) of urlsList) title (item (ixCurrentTab + 1) of titleList)
end tell
Pretty groovy...
--Ernie
|
|
|
|