I’m trying to create a generic applescript for now, but I would like to ‘freeze’ the slide from one Keynote and display that same slide on a second Keynote (same file just stored on a separate machine). This is my first attempt at applescript, but this is what I have so far with the help of Keynote Dictionary:
set fileName1 to "Macintosh HD:Users:cliff.johnston:Documents:Automator:Keynote:TestKeynote.key"
set fileName2 to "Macintosh HD:Users:RPM:Documents:TestKeynote.key"
tell application "Finder"
open fileName1
end tell
delay 2
tell application "Finder" of machine "eppc://<details here>"
open fileName2
end tell
delay 3
tell application "Keynote"
start from slide 1 of front slideshow
end tell
delay 2
tell application "Keynote"
advance
end tell
delay 1
tell application "Keynote"
tell front slideshow
set freezeSlide to current slide
end tell
end tell
delay 2
tell application "Keynote"
advance
end tell
delay 2
tell application "Keynote" of machine "eppc://<details here>"
start from freezeSlide
end tell
I also tried eliminating the ‘remote’ machine and just restarting the local Keynote with freezeSlide:
try
tell application "Keynote"
stop slideshow
end tell
tell application "Keynote"
quit saving no
end tell
end try
delay 3
tell application "Finder"
open fileName1
end tell
delay 4
tell application "Keynote"
show freezeSlide
end tell
I’ve tried ‘start from’ and ‘show’ the variable freezeSlide both on the local Keynote and the remote Keynote, but no method seems to work (does compile correctly). Only similar posting I could find is to capture Keynote slide as picture. I might end up using something like that, but I would really prefer to use my method.
Any ideas or comments would be greatly appreciated. Thank you in advance.
-cliff