Apple Notes and Applescript

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Apple Notes and Applescript Thu Jul 07, 2016 11:24 am • by Dale E
First post here so hopefully not a stupid question .... :)
Can anyone tell me where I can find decent info for beginners on writing short applescripts to use with Hazel?

I currently make use of a small script to get all sorts of documents into Evernote, but now want to point them to Apple Note instead. The script I have is like this:

tell application "Evernote"
create note from file theFile notebook {"Notebook Name"} tags {"tag1", "tag 2", "tag 3", "tag 4"}
end tell

So, it all works perfectly for evernote, but when I replace "Evernote" with "Notes", there is an error. The word 'note' in the second line is highlighted with the error message "Expected end of line, but found class name."

Any help would be appreciated.
Dale E
 
Posts: 1
Joined: Thu Jul 07, 2016 10:49 am

Re: Apple Notes and Applescript Fri Jul 08, 2016 10:57 am • by Mr_Noodle
Every app has their own way of doing things so just changing the app name usually won't work. You'll have to poke around for scripts that specifically deal with Apple Notes.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support