Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Cue and trigger audio along with Keynote presentation' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Cue and trigger audio along with Keynote presentation
Authored by: Scripter12 on Sep 25, '09 11:18:39PM
I haven't tried this beyond a simple test, but an alternate method would be to have an AppleScript running continuously in the background making use of these two commands to trigger the script to change the audio when certain slides are displayed.

	get slide number of current slide of slideshow 1
	get playing of slideshow 1
The first command gets the slide number of the currently viewed slide. The second tells whether the slideshow is playing or not. If you make a small table of page numbers indicating where you want a transition to take place then the script would be able to modify the soundtrack according to the slide being played. Here is a simple example:

global Not_yet
set Not_yet to true
on idle
	tell application "Keynote"
		if playing of slideshow 1 is true then
			if Not_yet and (slide number of current slide of slideshow 1 is 5) then
				set Not_yet to false
			end if
		end if
	end tell
	return 1
end idle
Save this script as a an application and set the option for it to stay open. When run it will beep once when slide 5 is shown in a presentation. Replace beep with some code controlling iTunes and put in a more elaborate checker for the slide number and you should be good to go. Return 1 causes this to execute once per second. You might want to change that as needed.

[ Reply to This | # ]