希望 Applescript 将 Keynote 演示文稿更改为特定幻灯片 [英] Want Applescript to change a Keynote presentation to a particular slide

查看:28
本文介绍了希望 Applescript 将 Keynote 演示文稿更改为特定幻灯片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Applescript 的新手,但 Applescript 可以告诉 Keynote 在演示期间乱序显示特定幻灯片吗?不想按顺序推进,但我确实想以随机顺序指定特定幻灯片.

I'm a newbie with Applescript, but can Applescript tell Keynote to display a specific slide out of order during a presentation? Don't want to advance in sequence, but I do want to specify a specific slide in random order.

我尝试了 Apple 文档,但没有.不是这里的类似问题真正回答了这个问题.MacScripters 网站建议(如下)无效.

I tried the Apple documentation, but nothing there. Not of the similar questions here really answers this question. The MacScripters site suggestion (below) didn't work.

不工作(在 Applescript 启动 Keynote 并启动幻灯片演示后:

NOT WORKING (this, after having Applescript start Keynote and launch slideshow presentation:

tell application "Keynote" to show (slide 22 of "/Users/me/Documents/Keynote_Slides.key")
end tell

也尝试过,但不工作

tell application "System Events"
    tell process "Keynote"
        jump to 22
    end tell
end tell

那么,我错过了什么?

推荐答案

我认为这样的事情应该对你有用:

Something like this should work for you I think:

tell application "Keynote"
tell slideshow 1
    show slide 22
end tell
end tell

这篇关于希望 Applescript 将 Keynote 演示文稿更改为特定幻灯片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆