Author Topic: ExifTool "Sent to" in windows?  (Read 1966 times)

.ggu

  • Newbie
  • *
  • Posts: 3
ExifTool "Sent to" in windows?
« on: April 14, 2014, 10:26:32 AM »
Hi,
Apple Mac have a great tool called Automator which allows you to change metadata for multiple files at one click EXAMPLE.

I wonder if it is possible in windows. I tried to create shortcut for exiftool.exe in %appdata%\Microsoft\Windows\SendTo to use right click and "send to". You can than edit properties of this shortcut and add exiftool parameters in Target field. Unfortunately you can enter only 259 characters in this field.

Is there a way to read metadata from some template file and write them to all files in folder?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14937
    • ExifTool Home Page
Re: ExifTool "Sent to" in windows?
« Reply #1 on: April 14, 2014, 10:30:34 AM »
You can get around command-line-length limitations using the exiftool -@ option.

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

.ggu

  • Newbie
  • *
  • Posts: 3
Re: ExifTool "Sent to" in windows?
« Reply #2 on: April 14, 2014, 12:49:33 PM »
Thanks,
it is ok but:
my arguments file looks like this:
Code: [Select]
-m
-overwrite_original
-Photoshop:All=
-tagsfromfile @ -iptc:all
-By-line="some string"
-CopyrightNotice="All rights reserved"
I get warning: "Ignored superflous tag name of invalid option: -tagsfromfile @ -iptc:all".

It is important for me to delete photoshop tags but preserve IPTC tags and then add / change a few IPTC tags.
I added this option -tagsfromfile @ -iptc:all because the -Photoshop:All= removes also IPTC tags.

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2668
Re: ExifTool "Sent to" in windows?
« Reply #3 on: April 14, 2014, 01:34:17 PM »
my arguments file looks like this:
Code: [Select]
-m
-overwrite_original
-Photoshop:All=
-tagsfromfile @ -iptc:all
-By-line="some string"
-CopyrightNotice="All rights reserved"
I get warning: "Ignored superflous tag name of invalid option: -tagsfromfile @ -iptc:all".

I believe you need to separate the tagsfrom file line.  Plus, I don't think quotes are desired in an Argfile.  I know that in one of mine, I have spaces at the end of the line and those are accounted for without having quotes.  So, try this:


Code: [Select]
-m
-overwrite_original
-Photoshop:All=
-tagsfromfile
@
-iptc:all
-By-line=some string
-CopyrightNotice=All rights reserved

Edit: I'm not sure if I'm right about the -TagsfromFile line, as I remember reading a post about this some time back but can't find it.  Regarding quotes, here's the pertinent line from the docs: "Normal shell processing of arguments is not performed, which among other things means that arguments should not be quoted and spaces are treated as any other character. "
« Last Edit: April 14, 2014, 01:47:05 PM by StarGeek »
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

.ggu

  • Newbie
  • *
  • Posts: 3
Re: ExifTool "Sent to" in windows?
« Reply #4 on: April 14, 2014, 01:52:33 PM »
All you're saying is right! (including -TagsfromFile line)
Thank you guys for your help.