Tmp file creation

Started by mcquiff, October 05, 2017, 06:46:22 AM

Previous topic - Next topic

mcquiff

Hi this is the line that I use
/usr/local/bin/exiftool -a -api PNGEarlyXMP -overwrite_original_in_place -XMP:description='5031827682617_test' '/Volumes/CloudStorage/Dropbox/__Sorting__/HotFolderA/5031827682617_test.JPG'

Its part of a bigger script where files get moved after. However occassionally I see a file like this appear.

5031827682617.JPG_exiftool_tmp

can I prevent that from happening? Ideally I need it to update the file directly.

Thanks
Matt

StarGeek

Unless something has changed in the past few months, no, you can't.

Previous post on the subject.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

mcquiff

Thanks for that. Can it be created elsewhere so not in the same folder?

Phil Harvey

Sorry, the temporary file is always created in the same directory as the target.  If possible, you should configure your scripts to ignore files with names ending in "_exiftool_tmp".

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

mcquiff

The obvious!!! no added to ignore in the script

Thanks

Matt