Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Send selected text to Evernote' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Send selected text to Evernote
Authored by: adayzdone on Jun 13, '13 06:39:31PM

This script will produce an error because the first synchronize command is not within a tell application "Evernote" block.



[ Reply to This | # ]
Send selected text to Evernote
Authored by: BiL Castine on Jun 14, '13 06:53:31AM
To clarify the above comment, change the 3rd line that reads " synchronize" to

tell application "Evernote" to synchronize

[ Reply to This | # ]
Send selected text to Evernote
Authored by: davidallie on Jun 17, '13 10:47:04AM

Thank BiL Castine for pointing that out. I eliminated that first 'synchronize' entirely, leaving just the one within the TELL segment:

on run {input}
tell application "Evernote" to activate
repeat with selectedText in input
tell application "Evernote"
if (not (notebook named "Stickies" exists)) then
make notebook with properties {name:"Stickies"}
end if
try
create note with text selectedText notebook "Stickies"
synchronize
end try
end tell
end repeat
end run



[ Reply to This | # ]