Re: PowerPoint outline level
Re: PowerPoint outline level
- Subject: Re: PowerPoint outline level
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 17 Jul 2005 12:45:06 -0700
- Thread-topic: PowerPoint outline level
On 7/17/05 7:53 AM, "Hanaan Rosenthal" <email@hidden> wrote:
> I am working on a project requiring me to create presentations from
> templates.
>
> While I can create text frames and add text to them, is there an easy
> way for me to specify the style or level that will give me the
> default look of the first level bullet or second level bullet look as
> defined in the template?
> I can get that if I add text to the pre-created text frame, but not
> to the ones I create myself.
There's a simple 'apply template' command. Will that work for you? It would
apply all the characteristics of the specified template to the presentation.
If you need more selective detail, you are going to have to get all the
properties and values you need from the various shapes and text frames of
your templates (are these "design templates"?) and apply them one by one as
needed to the slides or the slide master of your presentation. It can get a
bit complicated. Note that some things aren't even available as properties
but only as the results of commands: e.g. to get the colors of a color
scheme (which has no properties to speak of) you need 'get color from' the
color scheme 'at' the various enumerated aspects. Then apply the same colors
to the equivalent color scheme of your slide or slide master using 'set
color of' at the identical enumerated aspects. (Aside: Don't worry that the
RGB values look suspiciously low: they're actually using a different set of
RGB values than standard AppleScript integers based on 0-65535. These are
all 0-255. If you ever need to convert to or from traditional AppleScript
values use square roots and squares of the respective integer sets.)
I trust you have the "PowerPoint AppleScript Reference" available from
<http://www.microsoft.com> and go to /Resources/Developer/AppleScript there.
It's really hopeless to try scripting PPT without it. Also, compared to Word
and Excel even, it's really peculiar - from the little I've dipped into it -
and there are bugs. If you find any, please report them here and I'll pass
them on to where they can get fixed. I found some bugs in the way you have
to specify shapes by index - if I recall correctly, using some of the
specific subclasses of shapes as if they were full classes in their own
right gets the wrong index - you basically have to use 'shape'.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden