[Tutor] Add metadata to a dir of files.
mail at timgolden.me.uk
Thu Feb 22 21:16:21 CET 2007
Mark Bystry wrote:
> getting even closer. figure out how to write to a file but still in vbscript.
> Set objFile = CreateObject("DSOFile.OleDocumentProperties")
> objFile.SummaryProperties.Category = "CAT54"
In Python, that's spelt:
props = win32com.client.Dispatch ("DSOFile.OleDocumentProperties")
props.SummaryProperties.Category = "CAT54"
but when I tried doing it, I got a COM error on the line
where the Category is written. It worked ok with Subject
instead. Wouldn't have thought this was down to Python,
but I've not got much to go on!
More information about the Tutor