Re: Getting PowerPoint Slide Info
Re: Getting PowerPoint Slide Info
- Subject: Re: Getting PowerPoint Slide Info
- From: Ian was here <email@hidden>
- Date: Fri, 14 Dec 2012 12:30:42 -0800 (PST)
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
--> {1, 2, 3, 4, 5}
set idList to slide ID of slides
--> {256, 273, 279, 260, 280}
http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden