Make a New Slide in PowerPoint Using a Custom Layout

I’d like to automate building some PowerPoint decks, but I’m puzzled as to how to add new slides using one or more specific custom layouts.

I’ve seen this example of adding a new slide using a pre-set slide layout option:

tell application "Microsoft PowerPoint"
   tell active presentation
      make new slide at end with properties {layout:slide layout text slide}
   end tell
end tell

But how do I tell it to use a specific, named custom layout? I can’t find the syntax to refer to it by name or number. If it can’t be set at the time of creation, can it be applied after creation?

Thanks,

Mary

Not sure as I have an abiding hatred for powerpoint but custom layout is a property of a slide (as is layout).

You might try to set it in your make properties or failing that, after the slide has been added.