ExifTool Forum

ExifTool => Developers => Topic started by: rwhendrickson44 on September 22, 2015, 11:56:39 PM

Title: -d "%Y/%m/%d %T" not working for NSTask Objective C app
Post by: rwhendrickson44 on September 22, 2015, 11:56:39 PM
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?
Title: Re: -d "%Y/%m/%d %T" not working for NSTask Objective C app
Post by: Phil Harvey on September 23, 2015, 07:32:37 AM
The print formatting (including date/time formatting) is disabled by the -n option.

- Phil