

tQualifier(XMPConst. MyXmp.appendArrayItem(XMPConst.NS_DC, "title", Title, 0, XMPConst.ALIAS_TO_ALT_TEXT) Add -overwriteoriginal to suppress the creation of backup files. Var myXmpFile = new XMPFile(selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE) The command to clear the Title and Comment with exiftool tags would be exiftool -Title -Comment /path/to/files/ This command creates backup files. If (ExternalObject.AdobeXMPScript = undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript") Input filename: 032917_R_1234_Description.tifįT = MenuElement.create("command", "Add Specific Filename RegEx Pattern to Title", "at the end of Tools") Note that any content that already exists in the title field will be replaced: // I personally find it easier to work with regular expressions to modify a script, as I am only a beginner with JavaScript/ExtendScript so the methods used by SuperMerlin are not as clear to me as RegEx. 2) Write exiftool command-line arguments to ARGFILE, one argument per line (see the - option for details). Here is a Bridge script that I modifed to use the same regular expression capture group find/replace as used in the previous ExifTool example. The procedure is as follows: 1) Execute 'exiftool -stayopen True - ARGFILE ', where ARGFILE is the name of an existing (possibly empty) argument file or '-' to pipe arguments from the standard input. We can use awk to get at the title: ebook-meta unixpowertools.epub | awk -F "^Title +: " 'NF > 1.

There is a new chapter on access to Unix from Windows, and expanded coverage of software installation and packaging, as well as basic information on Perl and Python. Then run the Update Shell mand from /Applications/Python 2.7 (Mountain) Lion. Several sections focus on security and Internet access. ExifTool is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in a wide variety of files. pyExifToolGui is not a complete ExifTool Gui, far from that. Unix Power Tools 3rd Edition now offers more coverage of bash, zsh, and other new shells, along with discussions about modern utilities and applications. Rights : Copyright © 2009 O’Reilly Media, Inc.Ĭomments : The latest edition of this best-selling favorite is loaded with vital information on Linux, Darwin, and BSD. A command-line interface to Image::ExifTool, used for reading and writing meta information in image, audio and video files. Tags : COMPUTERS / Operating Systems / UNIX

Example output of ebook-meta unixpowertools.epub: Title : UNIX Power Tools, 3rd EditionĪuthor(s) : Jerry Peek, Shelley Powers, Tim O’Reilly & Mike Loukides
