Pass Pattern Variables to AppleScript

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

Moderator: Mr_Noodle

Pass Pattern Variables to AppleScript 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]
darth84
 
Posts: 1
Joined: Mon Nov 19, 2018 9:43 pm

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


Return to Support