Re: Accessing file metadata on windows XP




<wileyregister22@xxxxxxxxx> wrote in message news:1164704134.100569.101270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
When rightclicking a, for example, pdf file on windows, one normally
gets a screen with three or four tags. Clicking on one of the summary
tag one can get some info like "title", "Author", "category", "keyword"
etc..

My question is how can I programmatically read and change these data
with python. I know I should use Hammond's win32 extension, somehow
involving the pythoncom, storagecon of win32com etc.. Unfortunately,
so far I cannot get anything useful. Instead of trying blindly, would
somebody please points me to the correct direction. A little snippet
would help. I am particular interested in pdf files.


See \win32com\test\testStorage.py for an example of using
the storage interfaces to read and write document summary
info.

Roger




----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
.



Relevant Pages

  • Re: Accessing file metadata on windows XP
    ... gets a screen with three or four tags. ... with python. ... A little snippet ... I am particular interested in pdf files. ...
    (comp.lang.python)
  • Re: Zope vs Php
    ... I edit attributes by asking the editor to let me edit the ... > information from the DTD. ... What DTD do you use to write Python code? ... have it insert the tags for me. ...
    (comp.lang.python)
  • Re: parsing in python
    ... > a text from an oracle database that contains different tags that have to ... > texts in Python? ... > to increase the readability of the generated HTML source. ... parse text strings in Python. ...
    (comp.lang.python)
  • Re: Right tool and method to strip off html files (python, sed, awk?)
    ... I have to remove all the presentational tags and attributes from ... 2- Do some file I/O and feed Sed or Python or what else with the file. ... may be a pain to script though. ...
    (comp.lang.python)
  • Right tool and method to strip off html files (python, sed, awk?)
    ... I'm in the process of refactoring a lot of HTML documents and I'm ... using html tidy to do a part of this ... I have to remove all the presentational tags and attributes from ... 2- Do some file I/O and feed Sed or Python or what else with the file. ...
    (comp.lang.python)