Re: Writing Keywords to CSV - Not Working

Started by jammer, April 16, 2014, 12:46:09 PM

Previous topic - Next topic

jammer

My apologies to Oskar for highjacking the post but with a similar problem (Mr. Harvey reply if you want me to initiate a new thread).
-Newbie, on Win7-64 using standalone exiftool version.
-trouble importing csv file
-use case information:
D:\exif_use_case>dir
Volume in drive D has no label.
Volume Serial Number is F476-AD0E

Directory of D:\exif_use_case

04/16/2014  12:18 PM    <DIR>          .
04/16/2014  12:18 PM    <DIR>          ..
04/16/2014  12:16 PM                74 GenInfo.csv
10/18/2012  04:20 PM            56,754 use_case.jpg
               2 File(s)         56,828 bytes
               2 Dir(s)  434,243,796,992 bytes free

D:\exif_use_case>type GenInfo.csv
SourceFile,Creator,CreatorAddress,CreatorCity
*,MyName,MyAddress,MyCity

D:\exif_use_case>exiftool -v5 -csv=GenInfo.csv .
Reading CSV file GenInfo.csv
*: No such file or directory at script/exiftool line 1509

-jpg file does not get updated, I've tested with literally "*", same results
-can someone enlighten me on what I'm doing wrong, or my understanding of the SourceFile specification in the documentation

Phil Harvey

Wow, that sucks.  I just tested this, and '*' feature does not work in Windows, although it is fine on Mac.  I'll see if I can sort this out and post back here when I have more.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

OK, I've located the problem.  It is due to different behaviour of the Cwd::abs_path() function in Windows.  Apparently it dies with a warning message in Windows if the file doesn't exist.  On Mac it just returns an undefined value in this case.

I will patch this problem in the Windows version, and ExifTool 9.58 will fix this.

Thanks for reporting this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

jammer

Thank you sir for your efforts on a great product!