Here is what I am trying to do:
Open a PowerPoint file (a generic sample I made - only one slide long)
insert picture
rotate picture 90 degrees --(any direction) ← This is where I am having problems
Send the picture to back of the slide, meaning that the inserted picture will be behind a second picture
Thats all
tell application "Microsoft PowerPoint"
launch
set visible to true
delay 2
--Open existing ppt file
open "HDisk:script_demo.ppt" -- this ppt file has a title bar a picture
activate
set mySlide to slide 1 of active presentation
delay 2
--This will import a picture (file name can be any directory and file)
set picture1 to make new picture at the beginning of mySlide with properties {file name:"HDisk:DSC_2027.jpg", top:100, left position:200, height:300, width:300}
delay 2
--This will rotate the image 90 degrees
set rotation of picture 3 of mySlide of slide 1 of active presentation to 90 --This does not do anything
--set rotation of front graphic object to 90
--rotation picture1 rotation 90
--This will set the imported picture to the back of the ppt
delay 2
z order picture1 z order position send shape to back
end tell
Model: Macbook
AppleScript: 2.0
Browser: Safari 3.0.4
Operating System: Mac OS X (10.5)