Page 1 of 1

AppleScript - Evernote - Tag Variables

PostPosted: Thu Mar 16, 2017 7:53 pm
by Herby007
The import with Hazel and AppleScript in Evernote works fine.
Now I want that Hazel reads an OCRed document, find the company name and give this name in a AppleScript variable for a Tag in Evernote in this way

create note from file theFile notebook „Tax-2017" tags {„Billing", companyName}

Which lines must I integrate in the script to read out the content for the variable "companyName"?
Thank you for hints!

Herb

Re: AppleScript - Evernote - Tag Variables

PostPosted: Fri Mar 17, 2017 11:04 am
by Mr_Noodle
Look up "match patterns" in the help for instructions on how to extract the text from the document. If you store that in a custom attribute, you can then import that into your script. The AppleScript article in the help describes that.

Re: AppleScript - Evernote - Tag Variables

PostPosted: Fri Mar 17, 2017 12:01 pm
by Herby007
Great! I'll try it. Thank you for your hints!