Is it possible to shorten the command?

Started by Jom, October 14, 2019, 11:42:23 PM

Previous topic - Next topic

Jom

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

Phil Harvey

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 for an example.

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

Jom

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

Phil Harvey

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