Page 1 of 1

Pass Pattern Variables to AppleScript

PostPosted: Mon Nov 19, 2018 9:51 pm
by darth84
Hi!
I'm a newbie when it comes to Hazel but I'm trying to work out how to pass the custom patterns I created from the filename into an AppleScript to allow a custom email to be sent.

Example - a file is found in this format ShowName - ShowTitle.mp4. After the file matches, it creates folders and sub folders based on that data and renames the file. I then want it to use the 'ShowName' custom variable to pass into an AppleScript to send an email that says 'ShowName' has now been added and then send.

I'm trying struggling with this AppleScript part so any help would be amazing

[Copy of the workflow so far - https://ibb.co/cXRRVL]

Re: Pass Pattern Variables to AppleScript

PostPosted: Tue Nov 20, 2018 1:10 pm
by Mr_Noodle
Check the chapter on AppleScript in the help. It describes how to send in attributes to the script. If you run into specific problems with it report back here.