Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Powerpoint for Mac > Re: Slide Layou...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 2721 of 3142
Post > Topic >>

Re: Slide Layouts changes through Applescript in PPT 2008

by Steve Rindsberg <abuse@[EMAIL PROTECTED] > Apr 27, 2008 at 03:23 PM

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.




In article <2E9DBAA6-26BD-4D72-B4DF-CF23D4C4CAB4@[EMAIL PROTECTED]
>, Matzh
wrote:
> 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:Do***ents:Test.pptx"
>  set myDo***ent 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 myDo***ent" 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, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 




 2 Posts in Topic:
Slide Layouts changes through Applescript in PPT 2008
=?Utf-8?B?bWF0emg=?= <  2008-04-27 09:34:00 
Re: Slide Layouts changes through Applescript in PPT 2008
Steve Rindsberg <abuse  2008-04-27 15:23:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 9:27:23 CDT 2008.