wlmorin 0 Posted March 23, 2013 Share Posted March 23, 2013 I'v been using a simple AppleScript that I use with Hazel for awhile now and just recently started getting an error. The script I use is: tell application "Evernote" activate create note from file theFileend tell When I go to compile it, the word "note" is highlighted and I get the error message below: The error message that I'm receiving is: "Expected end of line, etc. but found application constant or consideration" Any assistance will be appreciated Link to comment
dansherman 0 Posted March 26, 2013 Share Posted March 26, 2013 I'm having the same issue. I got around it once, seemingly by opening and closing the evernote app several times. But it's pretty odd if that actually is what fixed it. Anyway, I've got the same problem again. "Expected end of line... " Link to comment
David K 0 Posted April 1, 2013 Share Posted April 1, 2013 When developing your AppleScript, you should usually have EverNote open for the compilation step. I've had similar issues writing AppleScript for other applications. This is especially true for Evernote, since if Evernote is closed and the EvernoteHelper is opened, the editor will change the application name to EvernoteHelper and really confuse you. ;-) Once the script is compiled, the activate command will actually open Evernote if it is not already open. It's just for compilation that you have to open Evernote before hand. Link to comment
wlmorin 0 Posted April 3, 2013 Author Share Posted April 3, 2013 Thanks for the tip. I now have my AppleScript working again. Link to comment
dansherman 0 Posted April 4, 2013 Share Posted April 4, 2013 I got it working by removing the App Store version, and redownloading from the website. Link to comment
iNik 47 Posted February 4, 2014 Share Posted February 4, 2014 Just call Evernote more specifically by putting your Tell to:tell application "Evernote.app"(* Your code here *)end tell Link to comment
Level 5 Jackolicious 808 Posted February 6, 2014 Level 5 Share Posted February 6, 2014 See if this is fixed in our latest version and let me know. Thanks for reporting it! Link to comment
Idea
wlmorin 0
I'v been using a simple AppleScript that I use with Hazel for awhile now and just recently started getting an error. The script I use is:
tell application "Evernote"
activate
create note from file theFile
end tell
When I go to compile it, the word "note" is highlighted and I get the error message below:
The error message that I'm receiving is: "Expected end of line, etc. but found application constant or consideration"
Any assistance will be appreciated
Link to comment
6 replies to this idea
Recommended Posts
Archived
This topic is now archived and is closed to further replies.