Mr_Noodle wrote:Turn on debug mode (see sticky article) and see what's logged then. Also, double check the script by running it outside Hazel.
Here is a simple example script "test.pl" that I am calling from Hazel (please note that I am not using a rule embedded script):
- Code: Select all
#!/opt/local/bin/perl
open(OUT, ">>/tmp/perl.log");
print OUT $ARGV[0] . "\n";
close(OUT);
It just logs that is has been called and the argument to "/tmp/perl.log".
No problem running it from the command line (using bash shell):
- Code: Select all
mac:~/perl$ ./test.pl just_testing
mac:~/perl$ echo $?
0
From Hazel, the script won't even start, as I can see from the log file "/tmp/perl.log".
Before Hazel 3.1, I had no issues with scripts like this.
The Hazel debug log just states:
- Code: Select all
2013-06-21 18:39:06.269 hazelworker[28129] [Error] Shell script failed: Error processing shell script /Volumes/Data/Users/xxx/perl/test.pl on file /Volumes/Data/Users/xxx/Ohne Titel.txt.
2013-06-21 18:39:06.269 hazelworker[28129] Shellscript exited with non-successful status code: 2