Hi,
I'm looking for solution that allows me to tag (for example, the red tag) in Finder files that contain any GPS data. Can anyone help me?
I would like it to work like this:
Find first image file in current folder (JPEG, TIFF or RAW) -> check if file contains GPS data -> if no -> find second image -> check if it contains GPS data -> if yes -> tag secondimage.jpg -a 'Red'
-> find third file ...
Thanks in advance!
How about something like this?:
exiftool -MDItemFSLabel=6 -if '$gpslatitude' DIR
- Phil
YES! It's working!
but in the above was a typo (should be '-' before 'if').
Thank you!
Can I assign my own tag name from the finder, e.g. 'GPSdataHERE'?
Quote from: magikct on April 04, 2019, 08:30:05 AM
in the above was a typo (should be '-' before 'if').
Thanks. I've fixed this mistake.
QuoteCan I assign my own tag name from the finder, e.g. 'GPSdataHERE'?
See the MacOS tags documentation (https://exiftool.org/TagNames/MacOS.html) for a list of available Finder tags. Only a few are writable, but these should give you what you want.
- Phil
Phil, I can assign any tag I want.
See an example:
MacBook:folder user$ tag example.jpg -a 'GPSdataHERE'
MacBook:folder user$
Yes.
But how can I combine both commands?
EDIT:
It's working now that I want.
exiftool -MDItemUserTags=GPSdataHERE -if '$gpslatitude' .
Thanks a lot for quick response and help!
Did you look at the MacOS tag documentation that I linked?
Yes. thanks!
Phil I have another question:
How to append tag "GPSdataHERE" to existing file tags instead of replace all tags with one "GPSdataHERE" ?
Use += instead of just =
exiftool -MDItemUserTags+=GPSdataHERE -if '$gpslatitude' .
Great! Thanks guys. My life is better now.