UserParam in TagsFromFile string

Started by peho, May 03, 2023, 02:35:54 AM

Previous topic - Next topic

peho

I use exiftool on my android mobile within the excellent app FastPhotoTagger.

Its not possible to adress lcal directory on android and as a workaround a paste local dir when needed.

In the below example Ive a subset of a command with 4 -execute. Because I need to paste the directory 5 times, I would like to use UserParam to only need to paste it once.
It works perfect in -FileName to rename file, but not when concatinating string for -TagsFromFile. Ive tested a lot of different options with &, " or '.

Is it possible?

-Execute -TagsFromFile @ -SrcFile "$UseDir/%19f.jpg'" "--FileName<$UseDir/%19f%-.nc.jpg" (....) -Common_Args -UserParam "UseDir=/storage/emulated/0/Pictures/2023-04-25 Watchtest" (....)

Phil Harvey

I don't know if I understand what you are asking.

Are you talking about a user-defined parameter in the argument to -srcfile?  This is not currently possible.  But it is effectively possible in the argument of the -tagsFromFile option by using the -fileNUM option instead.

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

peho

Sorry for the confusion with this example. I've other cases with -TagsFromFile and thought that TagsFromFile in this case was route cause and not srcfile.

Thanks, then I know that it cant be used with srcfile.
And thanks again for the -fileNum option. Ill dig into that:)