Applescript "Next Slide" script for KeyNote while NOT playing a slideshow

I'm trying to make a script that goes to the next slide while in the "editor" of keynote... The equivalent of Slide > Go To > Next Slide in the menu.


This should be blatantly obvious, but I can't figure it out for the life of me.


The fastest way I've found to do this is:


tell application "Keynote"

activate

start front document

delay 0.2

show next

delay 1

stop front document

end tell


But this still needs to play the sideshow to go to the next slide...


Any help would be greatly appreciated!

MacBook Air 13″, macOS 11.0

Posted on Mar 3, 2021 3:17 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 3, 2021 7:22 PM

A possible workaround is:


tell application "Keynote" to activate
tell application "System Events"
	
	click menu item "Next Slide" of menu of menu item "Go To" of menu "Slide" of menu bar 1 of application process "Keynote" of application "System Events"

end tell

Similar questions

3 replies

Mar 4, 2021 6:40 AM in response to MixDatSalt

Im sure you have a technical reason for wanting to create a script, just to let you know, Keynote has a set of keyboard commands for navigating slides:


  • Move to the next slide Fn-Down Arrow or Page Down
  • Move to the previous slide Fn-Up Arrow or Page Up
  • Move to the first slide. Fn-Left Arrow or Home
  • Move to the last slide Fn-Right Arrow or End
  • Go to a specific slide Control-Command-G

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Applescript "Next Slide" script for KeyNote while NOT playing a slideshow

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.