• 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
Scripting Bridge and Powerpoint, how to make new slide?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting Bridge and Powerpoint, how to make new slide?


  • Subject: Scripting Bridge and Powerpoint, how to make new slide?
  • From: Gabriel Zachmann <email@hidden>
  • Date: Wed, 9 Sep 2009 14:45:00 +0200

I know how to make a new slide in an active presentation in Powerpoint. It works like this:

tell application "Microsoft PowerPoint"
set newSlideC to make new slide at before slide 2 of active presentation ¬
with properties {layout:slide layout media clip and text}
end tell


(I stole this snippet from http://www.mactech.com/vba-transition-guide/index-094.html)

Now I would like to do the same via Scripting Bridge in my Cocoa app.

But I seem to be unable to find the appropriate classes, objects, methods, or properties in Powerpoint.h
(which I created with this command:
sdef /Applications/Microsoft\ Office\ 2008/Microsoft\ PowerPoint.app | sdp -fh --basename Powerpoint
)


According to Script Editor's dictionary of Powerpoint, the "make" command is in the 'Standard Suite'.
But I have no idea how to find it's defintion, let alone how to use it from my Cocoa application.


Could somebody please give a hint to me?
Since I'm not (yet) subscribed to the applescript-users mailing list, I am taking the liberty to post my question here.


Thanks a lot in advance.

Best regards,
Gabriel.


____________________________________________________________ Eigentlich bin ich ganz anders, nur komme ich so selten dazu. ( Ödön von Horváth ) ____________________________________________________________ http://zach.in.tu-clausthal.de ____________________________________________________________









Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Scripting Bridge and Powerpoint, how to make new slide?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Custom NSView in NSMenuItem not receiving mouse events
  • Next by Date: Snow Leopard turns CMYK jpegs green
  • Previous by thread: Custom NSView in NSMenuItem not receiving mouse events
  • Next by thread: Re: Scripting Bridge and Powerpoint, how to make new slide?
  • Index(es):
    • Date
    • Thread