Try "tell document 1" instead.On Dec 14, 2012, at 3:30 PM, Ian was here wrote: Thanks Stan, that code works if I say tell presentation 1. But, if I use the command tell presentation "Presentation 1" (the name of my presentation is "Presentation 1"), then I get a runtime error:
"Microsoft PowerPoint got an error. The object you are trying to access does not
exist."
I am using AppleScript Editor and a default presentation on PowerPoint (for experimentation).
From: Stan Cleveland <email@hidden> To: AppleScript Users <email@hidden> Sent: Friday, December 14, 2012 11:09 AM Subject: Re: Getting PowerPoint Slide Info
On Dec 14, 2012, at 10:31 AM, Ian was here wrote: I'm trying to use AppleScript to get the slide count in a PowerPoint presentation, and the id of each slide. Haven't been successful in this and haven't found any examples after Googling it. Thanks in advance.
Hi Ian,
This works in PowerPoint 2011:
tell application "Microsoft PowerPoint" tell presentation "My Presentation.ppt" set numSlides to
count slides --> 5 set indexList to slide index of slides http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
|