Text list based on -XMP-x:XMPToolkit

Started by Newsky, August 08, 2017, 05:54:23 AM

Previous topic - Next topic

Newsky

Is it possible to implement the following:
Get a list (a text file or several text files) with file names and paths up to them, compiled from the value of the -XMP-x:XMPToolkit? Folder with subfolders.
For example:
Image :: ExifTool 10.60 - exiftool.txt
Adobe XMP Core - adobe.txt
And within these files list of files with paths to photos that have certain values -XMP-x:XMPToolkit
Sorry for my english. I use Google translator

Phil Harvey

Quote from: Newsky on August 08, 2017, 05:54:23 AM
Is it possible to implement the following:
Get a list (a text file or several text files) with file names and paths up to them, compiled from the value of the -XMP-x:XMPToolkit? Folder with subfolders.
For example:
Image :: ExifTool 10.60 - exiftool.txt
Adobe XMP Core - adobe.txt

Sure.

exiftool -p "$xmptoolkit - $filename" -r DIR

QuoteAnd within these files list of files with paths to photos that have certain values -XMP-x:XMPToolkit

Something like this?:

exiftool -p "$xmptoolkit - $filename - $directory" -r -if "$xmptoolkit =~ /^ExifTool/" DIR

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Newsky

Apparently, I'm doing something wrong. No list appears
Sorry for my english. I use Google translator

Hayo Baan

What is the value of the xmptoolkit tag? My guess is it doesn't match the regular expression ^ExifTool.
Hayo Baan – Photography
Web: www.hayobaan.nl

Newsky





But I want to get a list (or separate lists), depending on the value of the field XMPToolkit
Sorry for my english. I use Google translator

Hayo Baan

That's easy. For the first ones, use ExifTool instead of ^ExifTool in the command Phil gave you, for the second, use Adobe.

That should do the trick.
Hayo Baan – Photography
Web: www.hayobaan.nl

Newsky

#6
Phil, Hayo Baan, thank you very much for your help!
It worked, but it's not exactly what I need ...


I'm very ashamed that I do not know English, so it's hard for me to explain what I really want to do. But I will try.

There are a number of photos that are inside the folders, some have the value Image :: ExifTool 10.60, some Adobe XMP Core 5.6-c128 79.159124, 2016/03/18-14:01:55, and maybe others. I want to specify a folder and on the output receive a text file in which there will be a list of photos with full paths.
Roughly the following:

Image :: ExifTool 10.60:
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-53-56.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-54-00.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-54-29.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 15-25-25.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 15-25-33.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 22-45-59.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 22-59-35.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-09-43.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-10-13.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-32-17.jpg

Adobe XMP Core 5.6-c128 79.159124, 2016/03/18-14:01:55:
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-53-56.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-54-00.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-03 11-54-29.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 15-25-25.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 15-25-33.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 22-45-59.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-04 22-59-35.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-09-43.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-10-13.jpg
D:\photo\Mobile\Camera\2017\08\2017-08-05 16-32-17.jpg


Or, get a few text files (preferably) inside which will be the same pictures with full paths. In one text file only photos with data Image :: ExifTool 10.60, in the second only with data Adobe XMP Core 5.6-c128 79.159124, 2016/03/18-14:01:55 and so on.

All I need is to find out what photos I have processed in ExifTool, but for some reason they are not saved in Lightroom and Lightroom does not report that these photos are "changed by a third-party program." Plus to this, Geosetter, displays photos that are processed by ExifTool in this way:
Sorry for my english. I use Google translator

Phil Harvey

Quote from: Newsky on August 10, 2017, 03:34:07 AM
I want to specify a folder and on the output receive a text file in which there will be a list of photos with full paths.

You can do this, but you need to run a separate command for each XMPToolkit:

exiftool -p "$directory/$filename" -r -if "$xmptoolkit =~ /ExifTool/" DIR > exiftool_files.txt

QuotePlus to this, Geosetter, displays photos that are processed by ExifTool in this way:

Did you ask the Geosetter author (Friedemann Schmidt) about this?  He should be able to fix it.  I have not been able to reproduce this problem.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Newsky

Already something is happening! But the file is unfortunately empty



Sorry for my english. I use Google translator

Phil Harvey

It looks like you ran this command:

exiftool -p "$ directory / $ filename" -r -if "$ xmptoolkit =~ / ExifTool /" d:\photo\Mobile\Camera> exiftool_files.txt

But you should have done this:

exiftool -p "$directory/$filename" -r -if "$xmptoolkit =~ /ExifTool/" d:\photo\Mobile\Camera> exiftool_files.txt

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Newsky

Again and again, Big, thank you very much, Phil! Everything works perfectly!
Sorry for my english. I use Google translator