尝试使用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")