Absolutely. There are comments on the file, which are set earlier in my Hazel rule. The long story is:
I have a folder on my desktop that Hazel is monitoring. It contains various subfolders that the rules are run on. The subfolders are named in a format NAME-ABBREVIATION. For instance "What Would You Do-WWYD". The rule that uses that subfolder to rename the file, appending the ABBREVIATION to the top, and then moves it to a network drive in a folder that matches NAME. And then, depending on some other rules, sorts it into subfolders from there. So, in the above example, a file called "Test.mp4" would be renamed "WWYD_Test.mp4" and then moved to the network drive and sorted into the "What Would You Do" folder.
The reason for setting the comment is I couldn't figure any other way to pass the source folder name into the javascript that splits up the NAME & ABBREVIATION. So, I add a comment with pattern Source Folder and then use that as an inputAttribute on a javascript function to split them apart.
Am I missing an easier way to utilize the source folder name?
Thanks!