Can I extract metadata from my clipboard?

Started by John.ZachryCorp, February 14, 2022, 11:06:59 AM

Previous topic - Next topic

John.ZachryCorp

Is it possible to extract metadata from files copied to your clipboard? I am trying to extract data when a user pastes a collection of files into the application. Rather than running a foreach loop to extract a tag value for every file, i was hoping to simply send the clipboard, or a list, of file names to the exiftool so it could run the iterations. my hope is that this will help speed up the process since it would be one request instead of multiple.

StarGeek

No, exiftool can't read the clipboard.  But you can use a temp file or pipe the file list to exiftool using the -@ (Argfile) option.  For example
exiftool -@ Filelist.txt <more options>
or using the - to read from the stdin
find <options> | exiftool -@ - <more options>
"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

John.ZachryCorp

Awe bummer. Well that sounds like a good alternative, thank you StarGeek!