How to refer to a particular presentation in applescript

R

RAHUL

Hi,

In my applescript I was referring to the presentation using there name
e.g.
save presentation <presentation_name> in <savepath> as save as default

But the problem is, when multiple presentation with the same name are
open. So I need to refer to them using their document window indexes
so I wanted to know "Should I retrieve the document window index
everytime I refer to the presentation or I can just get it once and
save it in the applescript?"

e.g. I found the index of a presentation and saved it in a variable in
my applescript, now I use this index everywhere in the script, But if
we close some windows or open some new presentations can this index
change, Or will it remain same until the presentaiton in the "index
window" gets closed.
 
R

RAHUL

Hi,

In my applescript I was referring to the presentation using there name
e.g.
save presentation <presentation_name> in <savepath> as save as default

But the problem is, when multiple presentation with the same name are
open. So I need to refer to them using their document window indexes
so I wanted to know "Should I retrieve the document window index
everytime I refer to the presentation or I can just get it once and
save it in the applescript?"

e.g. I found the index of a presentation and saved it in a variable in
my applescript, now I use this index everywhere in the script, But if
we close some windows or open some new presentations can this index
change, Or will it remain same until the presentaiton in the "index
window" gets closed.

By doing small experiment I found that the document window index is
actually the stacking order of "document windows" in Mac which may
change anytime you switch from one presentaiton to another. Hence we
can not save it.

But I found that it even changes while I am running a applescript and
not doing anything in the presentaion windows,

Now the question is "Is there any way to uniquely identify a
presentation for the lifetime of a applescript (it has some display
dialogs also that may interrupt its execution and in this time the
user may switch the PowerPoint windows)
 
S

Steve Rindsberg

Rahul,

If Applescript will return the full path of the presentation, that should
do it. Since you can't have two identically named files in the same
location, that should give you a start.

You'd want to compare both the path and the name (since you could have a
Presentation 1 that's not saved and one that has been saved)
 

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