我想仅为特定幻灯片运行PowerPoint幻灯片放映。 在我的研究之后,我尝试了以下但是没有得到预期的结果。 这两个脚本都从第一张幻灯片开始幻灯片放映。
1)
`tell application "Microsoft PowerPoint"
activate
open "/Users/sanjeev/pppp.ppt"
set slideShowSettings to slide show settings of active presentation
set starting slide of slideShowSettings to 4
set ending slide of slideShowSettings to 4
run slide show slideShowSettings
end tell`
2)
`tell application "Microsoft PowerPoint"
activate
open "/Users/sanjeev/pppp.ppt"
set slideShowSettings to slide show settings of active presentation
run slide show slideShowSettings
go to slide slide show view of slide show window 1 number 4
end tell`
第二个脚本也会出错: 错误“Microsoft PowerPoint出错:幻灯片放映窗口1的幻灯片放映视图不理解转到幻灯片消息。”幻灯片放映窗口1的幻灯片放映视图中的数字-1708
我看到了一个问题Want Applescript to change a Keynote presentation to a particular slide 但我认为这仅适用于KeyNote。
有人可以帮忙吗?
由于
答案 0 :(得分:4)
这似乎有效。它对我来说很麻烦。当脚本运行时,屏幕变黑,然后闪烁幻灯片然后变黑,最后显示幻灯片。我不知道这是由于脚本还是来自Microsoft的Applescript / ppt的实现。我说后者。
tell application "Microsoft PowerPoint"
set temp to active presentation's slide show settings
set temp's starting slide to 2
set temp's ending slide to 2
set temp's range type to slide show range
set temp's advance mode to slide show advance manual advance
run slide show temp
end tell