• 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
Keynote "current slide" not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keynote "current slide" not working


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

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


  • Follow-Ups:
    • Re: Keynote "current slide" not working
      • From: pete boardman <email@hidden>
    • Re: Keynote "current slide" not working
      • From: "David A. Cox" <email@hidden>
  • Prev by Date: Re: AS Scripting gone in OSX?
  • Next by Date: Re2: Using "character" in TeX-Edit
  • Previous by thread: Re: Mount Volume osax 10.4
  • Next by thread: Re: Keynote "current slide" not working
  • Index(es):
    • Date
    • Thread