Maarten,
thanks for your quick reply!
I mentioned grep because I'd like to search for the keywords that are
recognizable due to the rfd:li - tags in the XMP-file AND also because
this is something I *suppose* it's easy to do with grep in BBEdit (even
if it's still out of my reach :-)… as well as the rest of my
wish-script :-/).
Thanks again!
Regards,
Vlad
On 13 Mar 2020, at 17:06, Maarten Sneep wrote:
Hi,
If you need to work with xml I recommend to use a real xml parser. I
prefer to use python with lxml. It will allow you to exploit the
hierarchy of the xml file in ways that grep will not allow you to do.
Best,
Maarten
On 2020-03-13, at 13:44, Vlad Ghitulescu <[email protected]> wrote:
I was inexact regarding file-names and -number:
the XMP-file and the photo-file have the same name AND
there is most of the time more than one photo-file, because I shoot
in RAW (that’s CR2 for me, shooting Canon) and all of the edited
versions are JPG, once in a while TIFF.
So for a given photo „PhotoName“ I have always at least two files
PhotoName.CR2 (the RAW-file)
PhotoName.XMP (the metadata-file, I was hard-working enough to take
care of the metadata ;-)
and for the most of the photos there are even some other edited
versions as
PhotoName.JPG
PhotoName-1.JPG
PhotoName-bw.JPG
PhotoName.TIFF
The edited versions all begin with A but can have a) some data added
to the end of the file-name (as digits for various versions or -bw
for black & white) and b) some other file-extensions (JPG and once in
while TIFF).
That make my dream-script a little more complicated:
take this photo-folder;
read from the first XMP-file the IPTC-keywords;
copy all of this IPTC-keywords as Finder-tags to all of the files
with the suffixes CR2, JPG or TIFF of which the file-name begins with
the same name as the XMP-file;
loop within the photo-folder until there is no XMP-file anymore.
I hope that now is more clearer.
Thanks in advance!
Regards,
Vlad
--
This is the BBEdit Talk public discussion group. If you have a feature
request or need technical support, please email
"[email protected]" rather than posting here. Follow @bbedit on
Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/34388495-D44C-4AB9-8537-55E936C4CC31%40xs4all.nl.
--
This is the BBEdit Talk public discussion group. If you have a feature request or need
technical support, please email "[email protected]" rather than posting here.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/A7FFB8B2-4DE8-4E7B-9743-BCEB25476538%40Ghitulescu.de.