Exiftool rule for set author

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

Moderator: Mr_Noodle

Exiftool rule for set author Fri Jan 27, 2023 8:42 am • by Pirateblackbeard
Hello,

i am using Hazel in combination with Exiftool to manage my pictures.
I have a rule created to change the author as metadata with exiftool. The rule was already working but after a while it is not working any more.

Attached the debug log:

Code: Select all
023-01-27 13:31:37.998 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Timer scheduled for folder /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/01 Income Mobile at 4001-01-01 00:00:00 +0000
2023-01-27 13:31:38.001 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Thread 0x7f8c29704740: Task removed: [67596]
2023-01-27 13:31:38.770 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Thread 0x7f8c29704740: Received events (
        {
        date = "2023-01-27 12:31:38 +0000";
        path = "/Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos/23-01-25 22-41-45 4436.jpg_exiftool_tmp";
        shouldDoFullScan = 0;
    },
        {
        date = "2023-01-27 12:31:38 +0000";
        path = "/Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos/23-01-25 22-41-45 4436.jpg";
        shouldDoFullScan = 0;
    }
) for stream at path: /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos
2023-01-27 13:31:38.770 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Error resolving symlinks for path /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos/23-01-25 22-41-45 4436.jpg_exiftool_tmp:, No such file or directory
2023-01-27 13:31:38.771 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Error resolving symlinks for path /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos/23-01-25 22-41-45 4436.jpg:, No such file or directory
2023-01-27 13:31:38.771 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Thread 0x7f8c29704740: Run worker for folder: /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos
2023-01-27 13:31:38.771 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Task already running for folder: /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos
2023-01-27 13:31:38.982 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Thread 0x7f8c29704740: Received events (
        {
        date = "2023-01-27 12:31:38 +0000";
        path = "/Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/04 - Photos - Dupes JPG/23-01-25 22-41-45 4436.jpg";
        shouldDoFullScan = 0;
    }
) for stream at path: /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/04 - Photos - Dupes JPG
2023-01-27 13:31:38.982 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Thread 0x7f8c29704740: Run worker for folder: /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/04 - Photos - Dupes JPG
2023-01-27 13:31:39.079 hazelworker[67611] Running worker (v5.0.7) for folder with identifier: 16777228-237712.
2023-01-27 13:31:39.082 hazelworker[67611] ###main load address: 0x105c8f000
2023-01-27 13:31:39.082 hazelworker[67611] ###Hazel Core load address: 0x105cc7000
2023-01-27 13:31:39.082 hazelworker[67611] ###Noodle load address: 0x105de3000
2023-01-27 13:31:39.082 hazelworker[67611] ###CK load address: 0x105d9d000
2023-01-27 13:31:39.094 hazelworker[67611] DEBUG: Program is licensed.
2023-01-27 13:31:39.117 hazelworker[67611] DEBUG: Error reading file /Users/chrisbenk/Library/Application Support/Firefox/prefs.js: Error Domain=NSCocoaErrorDomain Code=260 "The file “prefs.js” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/chrisbenk/Library/Application Support/Firefox/prefs.js, NSUnderlyingError=0x7fc4db4191c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2023-01-27 13:31:39.127 hazelworker[67611] DEBUG: Could not find entry for default_directory in Chrome preference file.
2023-01-27 13:31:39.129 hazelworker[67611] DEBUG: Could not read Mail preferences.
2023-01-27 13:31:39.130 hazelworker[67611] Processing folder 04 - Photos - Dupes JPG
2023-01-27 13:31:39.130 hazelworker[67611] DEBUG: Pausing to wait for things to settle down.
2023-01-27 13:31:39.999 hazelworker[67599] DEBUG: Could not read Mail preferences.
2023-01-27 13:31:39.999 hazelworker[67599] DEBUG: About to process directory /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos
2023-01-27 13:31:40.002 hazelworker[67599] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2023-01-27 13:31:40.002 hazelworker[67599] DEBUG: Writing out DB file for /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos to path: /Users/chrisbenk/Library/Application Support/Hazel/16777228-236826.hazeldb
2023-01-27 13:31:40.003 hazelworker[67599] DEBUG: Directory /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos processed in 0.003705 seconds
2023-01-27 13:31:40.004 86Z3GCJ4MF.com.noodlesoft.HazelHelper[66373] DEBUG: Checking events for path /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos, folder 03 - PP JPG & Videos
2023-01-27 13:31:40.005 hazelworker[67599] DEBUG: Received file event: {
    date = "2023-01-27 12:31:38 +0000";
    path = "<NoodlePathSet: 0x7fa934432dd0>\n  /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos/23-01-25 22-41-45 4436.jpg : 0\n  /Volumes/Eigene Dateien/Eigene Dateien/Bilder/PP Chris Mobile/03 - PP JPG & Videos/23-01-25 22-41-45 4436.jpg_exiftool_tmp : 0\n";


Here is the rule in Hazel:
https://postimg.cc/F7qBP1DY

Would be great to receive a solution for this issue!

Thanks
Last edited by Pirateblackbeard on Fri Jan 27, 2023 11:24 am, edited 1 time in total.
Pirateblackbeard
 
Posts: 6
Joined: Fri Jan 27, 2023 2:32 am

Re: Exiftool rule for set author Fri Jan 27, 2023 10:39 am • by Mr_Noodle
The rule isn't coming through. In particular, the script you are using would be helpful here.
Mr_Noodle
Site Admin
 
Posts: 11174
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Exiftool rule for set author Fri Jan 27, 2023 11:26 am • by Pirateblackbeard
Unfortunately the screenshot in the original post has not worked so I just changed it to the link.

Here is the shell script that is executed by the rule:
Code: Select all
exiftool -author="Chris" -P -overwrite_original_in_place "$1"
Pirateblackbeard
 
Posts: 6
Joined: Fri Jan 27, 2023 2:32 am

Re: Exiftool rule for set author Mon Jan 30, 2023 10:35 am • by Mr_Noodle
I suggest using the full path to the exiftool program. Also, if there are any other environment variables exiftool needs, you should set them in the script.
Mr_Noodle
Site Admin
 
Posts: 11174
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Exiftool rule for set author Mon Jan 30, 2023 11:53 am • by Pirateblackbeard
Thanks, this worked!

But what I still don't understand is that at some of the rules to use the script the path "/bin/bash/" is required. Only for setting the author the path "/usr/local/bin/" is working.

But what is the difference between both of them?
Pirateblackbeard
 
Posts: 6
Joined: Fri Jan 27, 2023 2:32 am

Re: Exiftool rule for set author Mon Jan 30, 2023 12:32 pm • by Pirateblackbeard
Finally, I changed author to artist and now it works. It seems that author is a IPTC tag that makes some issues.

Thanks for your support!
Pirateblackbeard
 
Posts: 6
Joined: Fri Jan 27, 2023 2:32 am


Return to Support