Mac Help Forums


Reply
Thread Tools Display Modes

Adding a picture to place holder on a PowerPoint slide

 
Geico Caveman
Guest
Posts: n/a
 
      16th March 2011
Hello,

I am trying to automate the creation of a presentation during an
analysis run from Matlab. The idea is to generate some analysis numbers
and a plot for each step, and add the details programmatically to a
PowerPoint slide.

At the beginning of the run, the user opens a blank new presentation
which captures all the output sent by osascript called by Matlab with
command line arguments constructed by matlab (one title, two text items
and one image file). Please do not worry about how Matlab does all
that. I know how to do that part pretty well. The issue is an
AppleScript issue purely.

I have selected a two column layout (text box and picture). When I run
the script below without the picture, I get what I expect (a title and
two items in the text box).

I cannot figure out how to set the content of the third placeholder
with the image file the way I am creating the text box (see below).

--------

set thePicturePath to POSIX file (ImageFile)

tell application "Microsoft PowerPoint"
tell active presentation
set sObj to make new slide at end with properties {layout:slide
layout text and object}
set content of text range of text frame of place holder 1 of sObj
to theTitle
set content of text range of text frame of place holder 2 of sObj
to listItem1 & return & listItem2
??
end tell
end tell

----------

So, how do I add an image to place holder 3 in the "??" above ?

Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a picture to place holder on a PowerPoint slide Geico Caveman AppleScript 0 16th March 2011 04:57 PM
Oversize content in PowerPoint->Keynote slide conversion AES Apps 1 24th January 2011 12:42 AM
PowerPoint: Make right-click go to previous slide? Markus Dehmann Apps 1 10th August 2005 09:35 AM
Slow slide transitions in PowerPoint 2004 (not in Powerpoint v.X) dfritzin@hotmail.com Apps 2 20th May 2005 11:11 PM
Removing text animations in PowerPoint slide show? AES/newspost Apps 0 1st December 2003 05:35 PM


All times are GMT +1. The time now is 01:12 AM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
I Mac Won't stay connected too new 2wire
Roncberry (4 Hours Ago, 08:17 PM)

New to Mac Help
Hemibee (8 Hours Ago, 05:07 PM)

Windows paint?
seloc (8 Hours Ago, 04:57 PM)

wifi drops out on my imac
tommysting (10 Hours Ago, 02:15 PM)

iPod and camera won't connect
Sprightly (19 Hours Ago, 06:10 AM)