arg file issues with returns/line breaks on Mac OS X

Started by ericconn, September 24, 2013, 09:40:29 AM

Previous topic - Next topic

ericconn

I have been having issues with getting arg files to do what is instructed of them. I figured out that it's an issue with returns. I had commands on separate lines for separate files, some of which would work, and others that would return "No file specified" when the file was in the location described and the commands, visually, were the same as for the files that did work.

I realized it wasn't the code, because it was 100% identical, but the returns between code. Any suggestions on how to avoid this, instead of having to replace these line breaks by hand? I am going from a spreadsheet to the arg file for the purpose of adding keywords to many, many images. Thanks.

Code in argfile1.txt:
-Keywords+=test argument1
-Keywords+=test argument2
-overwrite_original
/Volumes/harddrive/test/test.jpg
-execute
-Keywords+=test argument3
-Keywords+=test argument4
-overwrite_original
/Volumes/harddrive/test/test1.jpg
-execute
-Keywords+=test argument5
-overwrite_original
/Volumes/harddrive/test/test2.jpg
-execute


test2.jpg would not write the keyword. I would get back:

Mac-Pro:~ macuser$ exiftool -@ /test/argfile1.txt
    1 image files updated
    1 image files updated
No file specified

Phil Harvey

Currently, ExifTool isn't very flexible about the newline characters in the argfile.  They must be appropriate for the system you are running.  There isn't any way around this right now.

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

ericconn