AppleScript - Evernote - Tag Variables

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

Moderator: Mr_Noodle

AppleScript - Evernote - Tag Variables 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
Herby007
 
Posts: 2
Joined: Thu Mar 16, 2017 7:48 pm

Re: AppleScript - Evernote - Tag Variables 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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: AppleScript - Evernote - Tag Variables Fri Mar 17, 2017 12:01 pm • by Herby007
Great! I'll try it. Thank you for your hints!
Herby007
 
Posts: 2
Joined: Thu Mar 16, 2017 7:48 pm


Return to Support