Sending new line in stay_open True

Started by z_vr, November 27, 2016, 12:54:33 PM

Previous topic - Next topic

z_vr

Hello,

I was wondering if it was possible to write a tag with new line in -stay_open True without first writing it to a file, and then doing -comment<=file.txt? http://www.exiftool.org/faq.html#Q21 stays it's either this method, or doing exiftool '-comment<line 1$/line 2' image.jpg. I don't want to use the first one because it will use IO and be slow, and second one because I don't want to manipulate string by replacing \n with $/ and also in FAQ it says it might be slower. Any other options for me here? Thanks.

Phil Harvey

If I understand, you are reading arguments from an argfile and you want to read an argument containing a newline without escaping the newline in any way.

Not possible.

The newline character is the delimiter in the argfile, so you can't use it in an argument.

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