【问题标题】:Using Applescript run powerpoint slide show of specified slide in the presentation使用 Applescript 在演示文稿中运行指定幻灯片的 powerpoint 幻灯片放映
【发布时间】:2014-05-24 21:06:06
【问题描述】:

我只想为特定幻灯片运行 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。

谁能帮忙?

谢谢

【问题讨论】:

    标签: macos scripting applescript powerpoint


    【解决方案1】:

    这似乎有效。对我来说它看起来很糟糕。当脚本运行时屏幕变黑,然后幻灯片闪烁然后变黑,最后显示幻灯片。我不知道这是否是由于脚本或 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
    

    【讨论】:

    • 非常感谢!!它工作得很好。任何想法,如果我们可以在运行幻灯片的同时关闭在后台打开的演示文稿。
    • 需要打开演示文稿的窗口才能运行演示文稿。
    猜你喜欢
    • 2012-06-28
    • 1970-01-01
    • 2023-03-17
    • 1970-01-01
    • 1970-01-01
    • 2013-12-14
    • 1970-01-01
    • 2014-10-19
    • 2013-06-07
    相关资源
    最近更新 更多