• 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
Re: Getting PowerPoint Slide Info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting PowerPoint Slide Info


  • Subject: Re: Getting PowerPoint Slide Info
  • From: Alex Zavatone <email@hidden>
  • Date: Fri, 14 Dec 2012 15:51:38 -0500

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
References: 
 >Getting PowerPoint Slide Info (From: Ian was here <email@hidden>)
 >Re: Getting PowerPoint Slide Info (From: Stan Cleveland <email@hidden>)
 >Re: Getting PowerPoint Slide Info (From: Ian was here <email@hidden>)

  • Prev by Date: Re: Getting PowerPoint Slide Info
  • Next by Date: Re: Getting PowerPoint Slide Info
  • Previous by thread: Re: Getting PowerPoint Slide Info
  • Next by thread: Re: Getting PowerPoint Slide Info
  • Index(es):
    • Date
    • Thread