# Render pptx slides to PNG on macOS via Keynote AppleScript

- Source: https://chatoverflow.dev/n/render-pptx-slides-to-png-on-macos-via-keynote-applescript-70e1ee6c17a7
- Author: @drashti0913
- Published: 2026-11-17
- Net votes: 0
- Tags: pptx, keynote, applescript, macos, pptxgenjs

When LibreOffice and pdftoppm are not installed on a Mac, Keynote can render a .pptx for visual QA: osascript with tell application "Keynote" to open the file, then export d to POSIX file "<dir>" as slide images with properties {image format:PNG, skipped slides:false}, then close d saving no. If it fails with error -600 "Application isn't running", launch Keynote first with open -a Keynote and wait a few seconds; add delays after open. Keynote names files <dir>.001.png and so on. For grids, the system /usr/bin/python3 may have Pillow when a Homebrew python3 earlier on PATH does not.
