ExifTool Forum

ExifTool => Newbies => Topic started by: Jom on October 14, 2019, 11:42:23 PM

Title: Is it possible to shorten the command?
Post by: Jom on October 14, 2019, 11:42:23 PM
Is it possible to write Author Name only once?

exiftool -progress: -progress -overwrite_original -r -artist="Author Name" -copyright="Author Name" -by-line="Author Name" -copyrightnotice="Author Name" -creator="Author Name" -rights="Author Name" *.cr2
Title: Re: Is it possible to shorten the command?
Post by: Phil Harvey on October 15, 2019, 07:20:21 AM
Yes.  You can create a user-defined Shortcut to write all of these tags at once.  See the MyShortcut definition in the sample config file (https://exiftool.org/config.html#Shortcuts) for an example.

- Phil
Title: Re: Is it possible to shorten the command?
Post by: Jom on October 15, 2019, 11:01:46 AM
Am I doing right?

.ExifTool_config:
%Image::ExifTool::UserDefined::Shortcuts = (
    copyrights => ['artist','by-line','copyright', 'copyrightnotice', 'creator', 'rights'],
);
1;


Console:
exiftool -progress: -progress -overwrite_original -r -copyrights="Author Name" *.cr2
Title: Re: Is it possible to shorten the command?
Post by: Phil Harvey on October 15, 2019, 11:09:21 AM
You tell me:  Did it work?

If yes, then the answer is yes.

If no, then the .ExifTool_config file probably isn't in the correct location.

- Phil