Adding ObjectName for iPhone´s name

Started by Trapi, January 09, 2025, 07:08:08 AM

Previous topic - Next topic

Trapi

Hi

I've been using Geosetter and following this forum for many years and I've been able to satisfy my simple needs to edit the metadata of my pictures. I do as much as possible with geosetter, because, as I'm not a SW guy, for someone without experience like me is easier, but for certain things, and reading in this forum, I've created a few commands to complete the rest of the tasks.

Although I've tried everything I could think of, with no success, the problem I have is that after cleaning, sorting, editing and completing the metadata of my pictures, I want to move a subset to my iPhone. The problem is that the sorting in the iPhone was weird ... until I discovered that iPhone uses the field ObjectName as the name for sorting.

What I do now is rename the filename with the pattern I want for the iPhone (don't want many fields, just Year.Mont.Day from TakenDate, a counter (to sort all images from same day), a Headline (I put the city), Caption (my comment), Artist and Source (I put a code to classify the images I like the most).

Then I use this command to copy this filename to the ObjectName field, removing the 4 characters of the file extension :
exiftool -m -q -q -charset Latin -overwrite_original "-IPTC:ObjectName<${filename;$_=substr($_,0,-4)}" "C:\Users\usuario\Pictures\2023.02.27. Australia. Todo Junto"

The problem is that not always work for all images (not for RAF, not always for MP4) and if I write it once and later add or delete an image (modifying the counter number), in many cases it does not overwrite the field and I have to do it manually.

My dream solution would be kind of reusing the rename Image files option of Geosetter (or the exiftool commands behind, which I don't know) for the ObjectName field.

This is the Pattern I use for Filename : {TakenDate:yyyy.mm.dd_hh.mm.ss}. {Counter:1:4}. {Source}. {Artist}. {Headline}. {Caption}. {SpecialInstructions}
This is the Pattern for Objectname : {TakenDate:yyyy.mm.dd}. {Counter:1:4}. {Headline}. {Caption}. {Artist}. {Source}

Any help/hint would be very appreciated !!

Thanks a lot ... from a non SW guy


StarGeek

Quote from: Trapi on January 09, 2025, 07:08:08 AMThe problem is that not always work for all images (not for RAF, not always for MP4) and if I write it once and later add or delete an image (modifying the counter number), in many cases it does not overwrite the field and I have to do it manually.

It shouldn't work at all for an MP4 because you can't put IPTC data into a video. You might try using Title or XMP:Title instead, as that is the corresponding location in XMP. Using simply Title in a video will write the Quicktime:Title tag in addition to the XMP one.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Trapi

Hi again ... Thanks for your clarifications. Really helpful !!

One last question. Which would be the command to write TakenDate:yyyy.mm.dd. Counter:1:4. Headline. Caption. Artist. Source into the Objectname field ?

Thanks