簡體   English   中英

簡單的AppleScript使PowerPoint 2011崩潰

[英]Simple AppleScript crashing PowerPoint 2011

我試圖讓PowerPoint 2011從AppleScript運行幻燈片放映。 我的腳本如下:

tell application "Microsoft PowerPoint"
    set settings to slide show settings of active presentation
    run slide show settings
end tell

幻燈片放映開始,但是PowerPoint立即崩潰。 我正在從AppleScript編輯器運行腳本,但是還嘗試從scripts目錄在PowerPoint中作為腳本運行,但結果相同。 我短暫地嘗試過從Cocoa應用程序中運行腳本,但是抱怨說“設置”缺少值。

盡管我懷疑這可能是PowerPoint錯誤,但我不熟悉調試AppleScript故障的方法。 現在有什么我可以有用的嘗試嗎?

嘗試:

tell application "Microsoft PowerPoint"
    run slide show slide show settings of active presentation
    repeat until slide state of slide show view of slide show window of active presentation is not slide show state running
        delay 1
    end repeat
end tell

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM