Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / PowerPoint / April 2008



Tip: Looking for answers? Try searching our database.

Slide Layouts changes through Applescript in PPT 2008

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
matzh - 27 Apr 2008 17:34 GMT
Hello,

I am trying to create a Powerpoint presentations with all slide titles
preset from a text file, or the like, so that each line of the text file.
Pasting into the outlline view on the left hand side in Powerpoint is not
working.  It just puts me everything onto the first title.
So I tried Applescript which I think is more elegant anyway.

My code:
ell application "Microsoft PowerPoint"
    open alias "Macintosh HD:Users:xyz:Documents:Test.pptx"
    set myDocument to make new slide at after slide 3 of the active
presentation with properties {slide layout text slide}
    #set properties of slide 4 of active presentation to slide layout text slide   
end tell

No matter what slide layout I am using, it is just inserting a title slide.
This also happens when I am opening a new presentation with Applescript.
If I uncomment the third command above, I get an error: Microsoft PowerPoint
got an error: Can’t set properties of slide 4 of active presentation to slide
layout text slide.

If I use "set properties of myDocument" instead, it is ignored and remains a
title slide.

Am I overseeing something or is this so buggy? Is there any alternative
solution? Changing/inserting text also only gave me error messages so far :(
Has anyone successfully done something with Applescript and Powerpoint 2008,
yet?  I have found very few resources about this in the net...
Steve Rindsberg - 27 Apr 2008 20:23 GMT
If it's a plain ascii text file that looks something like this:

Title for slide 1
Title for slide 2
... and so on

you can just open it into PPT.  Try it manually first.  File, Open, point to the
text file and go.

> Hello,
>
[quoted text clipped - 25 lines]
> Has anyone successfully done something with Applescript and Powerpoint 2008,
> yet?  I have found very few resources about this in the net...

================================================
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.