DAGDA SEARCH | Back to results | Support

MacPython / Microsoft Powerpoint - Python Wiki

Source: https://wiki.python.org/python/platforms/MacPython/Microsoft%20Powerpoint.html

  1. Python Wiki /
  2. Python Wiki /
  3. Platform-Specific /
  4. MacPython /
  5. MacPython / Microsoft Powerpoint
View as Markdown

MacPython / Microsoft Powerpoint

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Powerpoint and Word have extensive Applescript dictionaries.

Here’s how to get the path of the folder of the current presentation in Powerpoint, and the name of the file:

  from appscript import *
  a = app("Microsoft Powerpoint")
  path = a.active_presentation.path()
  file = a.active_presentation.name()
  print path, file
PreviousMacPython / Media Pro Next MacPython / Microsoft Word