![]() ![]() I am trying to write a script that will scrape all of my photos for keyword tags and create a CSV that I will then import into my PLEX SQlite DB.Give exiftool a try it is available from the package libimage-exiftool-perl in the repositories.Īs an example, If you have a pdf file called drawing.pdf and you want to update its metadata, use the utility, exiftool, in this way: exiftool -Title="This is the Title" -Author="Happy Man" -Subject="PDF Metadata" drawing.pdfįor some reason the Subject entered ends up in the keywords field of the metadata in the pdf file. All i get is endless syntax errors or complaining from PoSH about the variables in the exiftool command itself. How do I do this? Everything I have tried, including the Invoke-Expression commands have not worked for me. My variable, which will contain the currently processed keyword from my script needs to replace the section. PoSH should not try to replace them with any value, just pass them plain text to exiftool. It searches the metadata of the file for Tags that match those two names. In the above example, $filename and $Keywords are arguments that the command takes as input. ![]() I have tried to use this format: 'program -command stuff ' -f $varĮverything I try gives a syntax error or complains because the command is as follows:Įxiftool -p '$filename,' -if '$Keywords =~ /()/' *.jpg I have tried many different versions of escaping 'command "$var" command cont.' OR '"$var"' Research Triangle Powershell User Group remote-capable.Philadelphia PowerShell User Group remote-capable.Madison Power Users Group remote-capable.Denver Microsoft Enterprise Management User Group.NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions. Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Submission Guidelines | Link Flair - How To
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |