-d "%Y/%m/%d %T" not working for NSTask Objective C app

Started by rwhendrickson44, September 22, 2015, 11:56:39 PM

Previous topic - Next topic

rwhendrickson44

An Objective C app has been working successfully for a few years using exiftool with an NSTask invocation. For some reason, the -d option is not affecting date values in the csv output file. It works fine on the command line, and the NSTask arguments look correct:
task: (
    "-csv",
    "-d",
    "%Y/%m/%d %T",
    "-forcePrint",
    "-n",
    "-ext",
    mov,
    "-ext",
    mp4,
    "-ext",
    avi,
    "-ext",
    m4v,
    "-ext",
    wmv,
    "-ext",
    mts,
    "-ext",
    3g2,
    "-r",
    "-FileName",
    "-CreateDate",
    "-DateTimeOriginal",
    "-VideoFrameRate",
    "-Duration",
    "-CompressorID",
    "-ImageWidth",
    "-ImageHeight",
    "/Users/rwhendrickson/TestDataSets/TestAVCHD/20110604/PRIVATE/AVCHD/BDMV/STREAM"
)

Is there any way to see what exiftool thinks it has for options?

Phil Harvey

The print formatting (including date/time formatting) is disabled by the -n option.

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