[Tutor] Getting file properties on winodws
Tim Golden
mail at timgolden.me.uk
Thu May 21 18:17:24 CEST 2009
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.
TJG
More information about the Tutor
mailing list