AppleScript将PowerPoint导出为图像

时间:2019-01-28 18:16:18

标签: macos applescript ms-office powerpoint

尝试使用AppleScript自动将PowerPoint演示文稿导出为jpg图像。我下面的内容不起作用,任何见解将不胜感激。

on exportPowerPointToJpeg(presentationPath, JPGPath)
    set f to presentationPath as alias

    tell application "Microsoft PowerPoint"
        launch
        open f
        delay 1
        save active presentation in JPGPath as save as JPG
        quit
    end tell
end exportPowerPointToJpeg

exportPowerPointToJpeg("Macintosh HD:Users:user:Desktop:pres1.pptx", "Macintosh HD:Users:user:Desktop")

0 个答案:

没有答案