Jump to content
  • 1

Syntax Error for Script Error Import


larajune

Idea

Hello,

I'm trying to use Script Editor to import my Apple Notes into Evernote. Using the following code I found on a discussion board (see below). I am getting the Syntax error "Expected end of line, etc. but found application constant or consideration." with note highlighted. Tried opening & closing Evernote, then re-downloading from the web. I am on Big Sur. 

tell application "Notes"

set theMessages to every note

repeat with thisMessage in theMessages

set myTitle to the name of thisMessage

set myText to the body of thisMessage

set myCreateDate to the creation date of thisMessage

set myModDate to the modification date of thisMessage

tell application "Evernote.app"

set myNote to create note with text myTitle title myTitle  notebook "New Business Notes" tags ["imported_from_notes"]

set the HTML content of myNote to myText

set the creation date of myNote to myCreateDate

set the modification date of myNote to myCreateDate

end tell

end repeat

  • Like 1
Link to post

0 replies to this idea

Recommended Posts

There have been no replies to this idea yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...