Getting slide number of current slide??

E

elektrobank

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

I'm trying to get the following from info from PowerPoint, the current slide # as well as the notes.

I tried the following:

return slide number of slide of view of active window

But that only works when you actually click on the current slide, if it's running in presentation mode it says "missing value", so that doesn't really help. Does anyone know how to get the slide number and notes of the current slide while the presentation is actually running?

I'd doing this with PP 2008, which is the target platform, but if this could work with 2004 too, that would be great.

Thanks!!
 
S

Steve Rindsberg

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

I'm trying to get the following from info from PowerPoint, the current slide # as well as the notes.

I tried the following:

return slide number of slide of view of active window

But that only works when you actually click on the current slide, if it's
running in presentation mode it says "missing value", so that doesn't really help.
Does anyone know how to get the slide number and notes of the current slide while
the presentation is actually running?
I'd doing this with PP 2008, which is the target platform, but if this could
work with 2004 too, that would be great.

The VBA equivalent of what you're doing is

ActiveWindow.View.Slide.SlideIndex

Which gets you the current slide in normal view.

To do what you're after, you'd do:

SlideShowWindows(1).View.Slide.SlideIndex

You'll have to do the VBA --> Applescript translation

Note: generally you want SlideIndex rather than SlideNumber; Index tells you which
slide it is. Number tells you what number will appear on the slide if numbers are
displayed ... if the user's set slide numbering to start at 42, then the second
slide would be Number 43 but Index 2.
 
E

elektrobank

I already know how to do it in VB, the problem is that there is no equivalent way to do this in Applescript. The only way I found to get the slide number was what I wrote below, but that only works if you actually click on the slide in design view, it doesn't work in presentation mode. Any idea how to do this in Applescript?
 
S

Steve Rindsberg

I already know how to do it in VB, the problem is that there is no
equivalent way to do this in Applescript. The only way I found to get the
slide number was what I wrote below, but that only works if you actually click
on the slide in design view, it doesn't work in presentation mode. Any idea
how to do this in Applescript?

Not a clue, I'm afraid.

Have you checked Paul Berkowitz' VBA to Applescript guide (available on
MacTech's site)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top