Differences between revisions 1 and 2
Revision 1 as of 2008-06-19 18:09:08
Size: 323
Editor: hwvpn-janssen86
Comment:
Revision 2 as of 2008-11-15 13:59:46
Size: 323
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Powerpoint and Word have extensive Applescript dictionaries.

Here's how to get the path of the folder of the current document in Word, and the name of the file:

  from appscript import *
  a = app("Microsoft Word")
  path = a.active_document.path()
  file = a.active_document.name()
  print path, file

MacPython/Microsoft Word (last edited 2008-11-15 13:59:46 by localhost)

Unable to edit the page? See the FrontPage for instructions.