1
votes

I need a simple AppleScript that will cause PowerPoint to move to a specified slide number. I unfortunately am not familiar enough with AppleScript to properly interpret the information in the Applescript Library for PowerPoint. I think if someone can get me started I can take it from there.

The script just needs to reference the active presentation. If I could speak to my computer I just need to tell it to "go to slide #5" or "go to slide #2", etc.

The script needs to work while in Slideshow mode as the presentation will be running on a separate screen. Thanks so much for the help, I haven't been able to find this anywhere.

1

1 Answers

0
votes
my gotoSlide(2)
on gotoSlide(whichSlide)
    -- whichSlide is the integer position of the slide
    tell application "Microsoft PowerPoint"
        activate
        tell active presentation
            set theView to view of document window 1
            go to slide theView number whichSlide
        end tell
    end tell
end gotoSlide