不按顺序跳转到主题演讲幻灯片

发布于 2025-01-03 22:55:26 字数 275 浏览 2 评论 0原文

使用 Keynote,我希望幻灯片 6 跳回到幻灯片 2。我在 这篇文章 中找到了用于直接跳转的 applescript 代码:

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

我不明白如何从幻灯片 6 中激活此功能。我可以将其嵌入到第 6 张幻灯片中吗?

Using Keynote, I would like slide 6 to jump back to slide 2. I found applescript code in this post that works to direct jumps:

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

I don't understand how to activate this from slide 6. Can I embed this in the #6 slide?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梅倚清风 2025-01-10 22:55:26

无需 AppleScript 即可跳转到另一张幻灯片。
在这种情况下,一张图片超过一千个字:

在此处输入图像描述

如果您想重新显示某些幻灯片如果在演示文稿中的其他位置出现顺序混乱,最简单、显而易见的方法就是复制该幻灯片并将其放置在您需要的位置。但这当然可能会扰乱您的幻灯片编号。

或者,您可以使用与问题中提到的类似的 AppleScript 来运行整个演示文稿。当然,只有当演示文稿更像幻灯片放映(每张幻灯片有固定的持续时间并且不需要在幻灯片之间手动交互/切换)时,这个简单的解决方案才有意义:

set duration to 10 -- number of seconds per slide
set slideSequence to {1, 2, 3, 4, 5, 6, 2, 7} -- re-show slide #2 between #6 and #7

tell application "Keynote" to tell slideshow 1
    repeat with slideNumber in slideSequence
        show slide slideNumber
        delay duration
    end repeat
end tell

No AppleScript needed to jump to another slide.
In this case, a picture is more than a thousand words:

enter image description here

If you want to re-show some slide out of sequence at another point in your presentation, the simplest obvious way would be to just duplicate that slide and place the copy where you need it. But that, of course, will probably mess with your slide numbers.

Alternatively, you could use an AppleScript similar to the one you mention in the question to run your entire presentation. This simple solution, of course, would only make sense if the presentation were more something of a slideshow, with a fixed duration per slide and without the need of manually interacting / switching between the slides:

set duration to 10 -- number of seconds per slide
set slideSequence to {1, 2, 3, 4, 5, 6, 2, 7} -- re-show slide #2 between #6 and #7

tell application "Keynote" to tell slideshow 1
    repeat with slideNumber in slideSequence
        show slide slideNumber
        delay duration
    end repeat
end tell
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文