Tim Golden wrote:
Tim Golden wrote:
It would probably help if you specified what "does not seem[s] to be
working" meant. But I assume that you mean: if you add a Title into
the Summary on a JPEG then it doesn't get picked up by the script.
What's happening here (I think) is that for media types -- images,
movies, etc. -- the [Summary] property sheet is overridden, probably
by Windows Media Player which will use the properties embedded in
the JPEG (EXIF) or WMV. This isn't Structured Storage as such and
so isn't extracted by the script I showed.

If I get a chance, I'll look into this a bit further.

In principle, it ought to be possible to do this by
querying the IID_IPropertySetStorage on the corresponding
IID_IShellItem. But it doesn't look as though the pywin32
com stuff quite supports that yet. Could be wrong. Might
be worth trying with comtypes; I'll have a look if I can.

OK, more useful version now up; reads JPEGs, WMVs, etc.
Still more work to be done, reverse-engineering the FMTID
and property names, but at least it takes you further without
too much extra work.

 http://timgolden.me.uk/python/win32_how_do_i/get-document-summary-info.html

TJG
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to