Shell script failed eror

Well this has all been working for years but my Monterey upgrade seems to bork things now
The embedded script is-
Can anyone help me with a solution?
It's part of my photos management. Needs to sort photos into a month's folder which isn't getting created now, for some reason.
Thank all
Martin
- Code: Select all
2021-12-16 8:42:39.428 AM hazelworker[23194] 2021-12-16 08.26.26.jpg: Rule Sort into months matched.
2021-12-16 8:42:39.429 AM hazelworker[23194] Exception caught while executing shell script: launch path not accessible
2021-12-16 8:42:39.429 AM hazelworker[23194] [Error] Shell script failed: Error processing shell script on file /Volumes/SSD2/Users/martin/Dropbox/Photos/2021/2021-12-16 08.26.26.jpg.
2021-12-16 8:42:39.429 AM hazelworker[23194] Shellscript exited with non-successful status code: -900
2021-12-16 8:42:39.431 AM hazelworker[23194] Done processing folder 2021
The embedded script is-
- Code: Select all
<?php
date_default_timezone_set("Asia/Bangkok");
$date = exif_read_data($argv[1],"EXIF");
$date = $date["DateTimeOriginal"];
$time = date_parse_from_format("Y:m:d H:i:s",$date);
$time = mktime($time["hour"],$time["minute"],$time["second"],$time["month"],$time["day"],$time["year"]);
touch($argv[1],$time,$time);
?>
Can anyone help me with a solution?
It's part of my photos management. Needs to sort photos into a month's folder which isn't getting created now, for some reason.
Thank all
Martin