Page 1 of 1

Importing Hazel Tokens / Matched Data into Automator

PostPosted: Thu May 25, 2017 10:51 am
by hippigrippi
Hey guys,

I am a Hazel fanatic and Automator fiend. Currently, I am trying to set up a Hazel rule (or Hazel/Automator workflow if need be) that generates a .txt file based off a google forms pre-filled link and adds data found in PDFs identified by Hazel. Is there a way to send Hazel tokens to Automator?

I understand there is a way to send tokens to AppleScript/Javascript. Is it possible to then import those variables into Automator via a script?

I don't use Applescript or Javascript often so trying to create this rule via code comes off like reading German to me. If this is my only route however, I would love some resources to look at and learn.

Thanks for your help!

Re: Importing Hazel Tokens / Matched Data into Automator

PostPosted: Fri May 26, 2017 10:40 am
by Mr_Noodle
No way to do that with Automator. Normally you would need a script though alternatively, if you can get Automator to read the file's comments, you can have Hazel stuff the necessary data there.