I’m working on creating exercise keynotes that I render out to movies to keep me on track.
I’m getting stuck on the slide where I need to change to the next exercise. I can add the audio clip, but I don’t know how to make it auto play.  Here’s the Apple Script snippet so far.
set thisAudioClip to make new image with properties {file:BEEPMP3}
tell thisAudioClip
    set position to {48, 48}
    set clip volume to 75
    -- set auto play to true <- this doesn't work :frowning: 
end tell
I’m just not sure how to make this clip autoplay. Any suggestions?
             
            
              
              
              
            
            
           
          
            
            
              I kept playing around and did a little experimenting to find a solution!
First, I got the list of all the controls in the active Keynote window with this:
tell application "System Events"
tell front window of (first application process whose frontmost is true)
	set uiElems to entire contents
end tell
end tell
Then I used this little snippet:
tell application "System Events" to tell process "Keynote"
click checkbox "Start audio on click" of scroll area 1 of front window
end tell
Thought this might be useful for others where the exact function isn’t directly scriptable.