How do I export tags of notes from Evernote using applescript?
Hi,
I am looking for a way of exporting the tags of notes in Evernote to an RTF/CSV file. I have a script that reads/exports all the titles of the notes, but when I try the same with tags I can read the tags, but I'm not sure how to write them to a string/file.
Here is a simple script that reads the tags of a note:
tell application "Evernote"
set the_notes to the selection
set first_note to item 1 of the_notes
set the_tags to (the tags of first_note)
end tell
It returns:
{tag "travel" of application "Evernote"}
But when I try to write this to a TextEdit file by adding:
tell application "TextEdit"
activate
make new document
set theDate to current date
set text of document 1 to the_tags as text
end tell
I get the error: "Can’t make «class EVtg» "travel" of application "Evernote" into type text."
Could someone help to get the script to write the tags of the notes?
Thanks,
Nick
Macbook Pro, Mac OS X (10.7), 2.66 GHz Intel Core i7 8GB RAM