• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keynote "current slide" not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keynote "current slide" not working


  • Subject: Re: Keynote "current slide" not working
  • From: "David A. Cox" <email@hidden>
  • Date: Tue, 22 Nov 2005 23:19:19 -0800 (PST)

I have continued to look at this, and I have a more complex script now that shows another complexity of the issue (or at least may make it more obvious as to what I am missing).

tell application "Keynote"
start from slide 1 of front slideshow
delay 1
set var1 to slide number of current slide of front slideshow
set var2 to slide number of front slide of front slideshow
delay 10
set var3 to slide number of current slide of front slideshow
set var4 to slide number of front slide of front slideshow
end tell
return {var1, var2, var3, var4}

The test is to select slide 3 or above of a keynote presentation. Then run this script, wait a few seconds (more than 1 but less than 10), and then advance one slide so slide 2 is showing.

If both of the variable setting formats worked, we would expect to see the script return:
{1, 1, 2, 2}


But instead, (assuming we start on slide 3, we get this:
	{3, 1, 3, 1}

So it looks like "current slide" NEVER updates when the slideshow starts, and the "front slide" is updated as the slideshow starts, but then does not update as the slideshow progresses.

Does anyone have a suggestion as to how to ask for the currently showing slide of a playing slideshow.

DAC

 On Tue, 22 Nov 2005, David A. Cox wrote:

I am stuck.

I am trying to get the slide number of an active Keynote presentation.

The sciprt:
tell application "Keynote"
set SlideNum to  slide number of current slide of front slideshow
end tell

works great for getting the number of the slide that is selected for editing. But this does not work correctly if the slide show is playing.

As an example, if you have a slide show, and you move to any slide other than number 1 in the editing window thing, and then run this script:

tell application "Keynote"
start from slide 1 of front slideshow
delay 10 -- just to be super sure that it has had time to refresh
set SlideNum to  number of current slide of front slideshow
end tell

you would expect to have SlideNum set to "1", but rather than that, you get "SlideNum" set to whatever silde number you had selected in the editing window of Keynote. I tried using "of front window" rather than "of front slideshow" but that errors out.

Any ideas?

DAC

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Keynote "current slide" not working (From: "David A. Cox" <email@hidden>)

  • Prev by Date: Re: Tiger broke my Excel->PDF Script
  • Next by Date: Re: Keynote "current slide" not working
  • Previous by thread: Keynote "current slide" not working
  • Next by thread: Re: Keynote "current slide" not working
  • Index(es):
    • Date
    • Thread