繁体   English   中英

Applescript检测Keynote中显示的幻灯片

[英]Applescript detect what slide is showing in Keynote

就像标题所说的那样-有没有办法检测主题演讲中显示的幻灯片(使用applescript)? 是的,我知道如何使用applescript更改幻灯片,我只需要检测已激活的幻灯片即可。

解决了! >>>看下面

(没有足够的声誉来回答我自己的问题,所以我只在这里贴上它。)

由于这个人的脚本,我找到了解决方法: http : //code.google.com/p/keynotetweet/

对于Keynote中的每张幻灯片,您都可以选择附加不可见的注释(不是黄色便笺,而是页面底部的文本框。将视图更改为“显示演示者注释”)。 您可以在此处存储触发字符串,即“动作”。 因此,创建主题演讲,并将“操作”放入一张幻灯片的备注中。 启动小程序,然后启动幻灯片放映,并在注释中显示带有“动作”的幻灯片时,小程序将拾取它并执行您设置的所有操作。

repeat
    tell application "Keynote"
        set slideNotes to get notes of current slide of first slideshow
        if text of slideNotes is equal to "action" then
            say "Is this the slide you're looking for?"
        end if
    end tell
end repeat

请享用!

tell application "Keynote"
tell slideshow 1
    get current slide
end tell
end tell

给您应用程序“ Keynote”的文档“ Untitled”的幻灯片3

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM