I have had great help using ppt_slide.py on Windows PC but now I would need to the same kind of script on a Mac. Is it possible to create? I.e. is there anything similar to win32com in Python on Mac to be able to control other programs?
Thanks for providing this script, it does exactly what I needed.
I noticed that if PowerPoint is closed and relaunched, then the script may fail with an error "The RPC server is unavailable." I worked around this by replacing line 76 (ssw = powerpoint.SlideShowWindows) with the following:
Python:
try:
ssw = powerpoint.SlideShowWindows
except Exception as exc:
if 'The RPC server is unavailable' in str(exc):
powerpoint = None
return get_slideshow_view()
else:
raise
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.