Page 1 of 1

AppleScript to move PDFs to Evernote fails

PostPosted: Mon Mar 25, 2013 7:28 pm
by PaulBII
Hello,

Is this an issue with Hazel or Evernote or Mac OS X Mountain Lion?

https://www.dropbox.com/s/yn6355mis3lnef1/Hazel%20rule.png

Re: AppleScript to move PDFs to Evernote fails

PostPosted: Tue Mar 26, 2013 3:08 pm
by Mr_Noodle
I've had reports of this but nothing has changed in Hazel on that front. I suspect maybe something changed with Evernote's AppleScript support. Have you tried compiling the script in the AppleScript editor?

Re: AppleScript to move PDFs to Evernote fails

PostPosted: Tue Mar 26, 2013 6:10 pm
by PaulBII
It fails in the same way when I try compiling in the AppleScript Editor. Does that point more toward Evernote or something in the OS?

Re: AppleScript to move PDFs to Evernote fails

PostPosted: Thu Mar 28, 2013 12:40 pm
by Mr_Noodle
I'm guessing something changed in Evernote's AppleScript dictionary so I'd contact them about it.

Re: AppleScript to move PDFs to Evernote fails

PostPosted: Mon Apr 08, 2013 11:42 pm
by mpaulwright
I was having that exact same problem and found a solution that worked for me. When editing the AppleScript for sending things to Evernote, Evernote had to be open. If it was closed, I'd get the exact same error as shown in your picture. Once the script was completed and the Hazel rule saved, Evernote no longer had to be open. I don't know AppleScript (it's a copy and paste job for me), but this is what worked for me. Maybe someone with more knowledge could explain it.

Re: AppleScript to move PDFs to Evernote fails

PostPosted: Tue Apr 09, 2013 12:03 pm
by a_freyer
Your script compiles perfectly fine for me in Hazel, with the most recent version of both Evernote and Hazel.

I believe the problem may lie in a previous Evernote AppleScript dictionary (i.e. from a previous version), and AppleScript is confused.

To fix this issue, run this command in terminal to update your Launch Services database:

Code: Select all
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;


My other suggestion is to delete the four instances of double quotes and replace them by typing.

Re: AppleScript to move PDFs to Evernote fails

PostPosted: Thu Sep 12, 2013 5:11 pm
by rfbriggs
Hello.

I am having the same issue with Evernote but neither suggestion worked. Did anyone have any success getting this fixed?

Thanks.