I need some help making Hazel, AppleScript and Python work together. My Hazel action is pretty simple:
do shell script "python /Users/MyName/HazelTest/Read_CSV_Then_PDF_Then_Search_Array_for_Hazel.py"
If I understand the Hazel User Guide, Hazel will pass "theFile" to AppleScript. I therefore used "theFile" in my Python program, but the Hazel log shows:
NameError: name 'theFile' is not defined"
How do I pass the the file name from Hazel to Python?