Moving and renaming in Windows

Started by amuelder, February 08, 2016, 04:25:56 PM

Previous topic - Next topic

Phil Harvey

That's a mistake I've made too.

- 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 ($).

amuelder

Phil, thank you so much. I'm not a programmer. So this is highly appreciated.

I'm assuming I could integrate this to also to add this Filmmode to keywords. Am I right?

exiftool -config Andy.config -k -r -o dummy/ -d "c:/Users/andym/Pictures/temp_raw/%%Y/%%m-%%d/%%%%e/%%y%%m%%d_image_%%%%1.3C" "-filename<${Andy}.%%e" "-Keywords-=${Andy}" "-Keywords+=${Andy}" -ext jpg H:\DCIM

But the keyword written is ${Andy} and not Astia for example.

StarGeek

Try using ${MyName} instead of ${Andy}.

The config file creates a new tag with the name MyName
"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

amuelder

I had MyName exchanged by Andy in the config file.
After returning to MyName, now the Keyword shows ${MyName}

The file amendment works perfectly: 160211_image_001_ProNegHi.JPG
It's the keyword that doesn't go with the tag.

StarGeek

Ah, gotcha.  I jumped to conclusions and didn't fully read the command.

If you revert to Andy, try this instead:
"-Keywords-<Andy" "-Keywords+<Andy"

or if you keep MyName:
"-Keywords-<MyName" "-Keywords+<MyName"

In this case you are copying a tag, so you need the < option.  You can also use ${Andy}/${MyName} format as well.  If you are modifying the tag you are adding, then you must use the DollarsignBraceTagBrace format.

"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

amuelder

Sorry, but that way the keyword is now
IPTC    Keywords        c:/Users/andym/Pictures/temp_raw/2016/02-11/%e/160211_image_%1.3

I thought I could just use the user-defined tag Andy not only in the filename but also for the keywords.

exiftool -config Andy.config -k -r -o dummy/ -d "c:/Users/andym/Pictures/temp_raw/%%Y/%%m-%%d/%%%%e/%%y%%m%%d_image_%%%%1.3C" "-filename<${Andy}.%%le" "-Keywords-<${Andy}" "-Keywords+<${Andy}" -ext jpg H:\DCIM

I tried "=" as well as "<" signs.


I just realized that won't work either. Because the underscore _ is part of the return from the config-file. Which will lead to e.g. Keyword = _Astia once I got it figured out how to fix the above issue. Sorry to keep bugging you guys.

StarGeek

Sorry for making so many mistakes in reading this thread.

Do you want just the FilmMode part of "Andy" or "FilmMode_Saturation" part?

I think a change to the config file would be in order to allow more flexibility. 

"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

amuelder

#22
Good morning Stargeek,

no problem. I'm grateful that you guys are so helping.

Unfortunately the "Filmmode" as it is called in the camera is stored in the tag "FilmMode" for the colored profiles. For B&W profiles this is stored in the tag "Saturation".

I would like to the rename JPG (not RAF) files according to this: yymmdd_image_###_Filmmode.jpg
The Filmmode being either the shortened version for the colored profiles or the description of the saturation for B&W pictures respectively.

And for future references, because the pictures will be renamed after final touch-up in Lightroom, I would like to add these Filmmode tags also as Keyword. So I can filter for them in Lightroom later on. That's why I was hoping to be able to use the custom-tag "Andy" in the filename as well as for the Keywords.

Thanks again!
Andy

Phil Harvey

You should edit the config file to remove the CreateDate stuff if you want to just use the FilmMode and Saturation in the Keywords.

- 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 ($).

amuelder

Hello Phil, hello Stargeek,

sorry that I need to come back, but I have 2 last items that I don't get to work:

Firstly I would like to use the config file to not only rename the files but also add the same "item" to keyword.

e.g. 160212_image_112_ProNegHi.jpg and add the keyword ProNegHi to it.

Attached the config file you gave me. Here's the code I use it with:
exiftool -config Andy.config -r -o dummy/ -d "c:/Users/andym/Pictures/temp_raw/%%Y/%%m-%%d/%%%%e/%%y%%m%%d_image_%%%%1.3C" "-filename<${MyMode}.%%le" -ext jpg H:\DCIM

Attached the config file you gave me. Can you please help me with this? Thank you!

Andy

Phil Harvey

I think you want to add something like this to the command: "-keywords+<mytag"

You'll have to define what MyTag is.  Also, you may want to write XMP Subject instead of IPTC Keywords.

- 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 ($).