I had to add a line to check that the height did not exceed the slide height after resizing in cases where the image was wider than tall, but was not the same ratio as 7. Here is my updated code after implementing suggestion. Set left position of theShape to (leftPos / 2) Set leftPos to (slide width of page setup of thePres) - (width of theShape) ![]() Set theShape to first shape of slide a of thePres Set slideCount to count slides of thePres ![]() Here is my code so far: tell application "Microsoft PowerPoint" I prefer the images to be maximized either vertically or horizontally, or whichever is appropriate for the image.Īny idea how to add code that would determine if the image (shape) would better be maximized to the slide height (7.5 in x 72 px/in) or width (10 in or 720 px)? There is about 0.5-1 inch of space around the edges that could be used. The images are centered, but they are not completely maximized. I have used the provided Automator action to add a bunch of images (100 or so) into a new PPTX file. I am using MS Powerpoint 2008 on my macbook.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |