I have zips of photo sets. Holidays, bday parties and such. Some have ratings and some have tags.
I want to:
Read the zip and look for a tag.
Depending on the value preform an action that will result in replacing the zip with a new one.
Copy tags from old zip to new zip.
Add Tag to indicate processed.
I want to produce a script that would process all files, hence considering PowerShell.
I could make a Dopus script. I am also considering hacking the comic book script, as there is some cross over (and it might add some value to that script for others).
Doing it from an Opus script would be much easier, since that gives you access to the data. You could have the Opus script run a PowerShell script/command and tell if the tags etc. if you want to do most of it in PS.
Description of that stream afm .%H(fs-read('.default.md:\x05SummaryInformation'),,16)
Will get you access to the comments, but it is a bit more complicated to decode. Hint: The comments are at the end typically if no other fields.
You can see [xattr] file streams on an NTFS-File by typing dir /R at a console [wt.exe or cmd.exe] command-line.
From some testing, via nirsoft's "AltenateStreamView" and "HxD", the structure actually appears to be:
Header:
00:
14 00 00 00 00 00 00 00
: Probably an offset to the start of the Optional Text section, possibly to allow further expansion of the header, so probably not a good idea to ignore it!