put "-T -d '%y%m%d'" into ArgumentDate
put shell(merge("`[[ChExifTool]]`exiftool `[[ArgumentDate]]` -DateTimeOriginal `[[ChPosixFichier]]`")) into LaDate
I am getting a result as it the ArgumentDate being ignored as a non-valid parameter.
But I am getting the right result if I am putting the argument literally :
put shell(merge("`[[ChExifTool]]`exiftool -T -d '%d/%m/%Y' -DateTimeOriginal `[[ChPosixFichier]]`")) into LaDate
Are there incompatible characters in the argument?
Many thanks for your help!
André Tremblay
PhotoGraphex
Do you need to put quotes around ArgumentDate when it is passed to exiftool?
So perhaps you don't need the gravè accent characters around [[ArgumentDate]] in the merge command.
Here is a hint when you are having trouble with shell commands.Instead ofput shell(merge("`[[ChExifTool]]`exiftool `[[ArgumentDate]]` -DateTimeOriginal `[[ChPosixFichier]]`")) into LaDatedo it in two steps.put merge("`[[ChExifTool]]`exiftool `[[ArgumentDate]]` -DateTimeOriginal `[[ChPosixFichier]]`") into tCmdput shell(tCmd) into LaDateThen if it's not working, put a trace command between the two lines and the script will pause to show you what you have for the shell command.