Each installed Keynotetheme contains a set of slide designs, called master slides.
The Master Slide Class
master sliden : [inh. slide > iWork container ] : A master slide in a presentation document.
contained by document.
name ( text r/o ) : The name of the master slide.
Every slide added to a presentation is based upon the one of the parent theme’s master slides. The value of a slide’s base slide property is a reference to the master slide that the created slide was based upon.
The Base Slide Property (Excerpt from Slide Class)
sliden : [inh. iWork container; see also Compatibility Suite] : A slide in a presentation document.
base slide ( master slide ) : The master slide this slide is based upon.
The base slide property can be used in the making of a new slide, as well as be used to change the master slide of an existing slide.
New Slide with Master Slide
The following script demonstrates how to use the base slide property to create a new slide based upon a specific master slide.
Note that getting a list of the names of the master slides of a document (line 08) returns a list of the names of the master slides of the application theme applied to the document.
New Slide using Master Slide
propertythisMasterSlideName : "Photo - 3 Up"
-- GET A LIST OF THE NAMES OF THE MASTER SLIDES OF A DOCUMENT
set themasterSlideNamesto thenameof everymaster slide
Master slides are an element of the document class, not the slide class. If a reference to a master slide is constructed within a tell block targeting a slide (line 09), the script will error because the constructed reference to the master slide is invalid. (⬇ see below )
Change the Master Slide of the Current Slide (incorrect method)
A solution for using a reference to a master slide within a tell block targeting a slide, is to create the reference OUTSIDE of the slidetell block, store it in a variable, and then use the variable inside the tell block: (⬇ see below )
Change the Master Slide of the Current Slide (alternate method)
Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. MACOSXAUTOMATION.COM assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. MACOSXAUTOMATION.COM provides this only as a convenience to our users. MACOSXAUTOMATION.COM has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and MACOSXAUTOMATION.COM assumes no responsibility in this regard. Please understand that a third-party site is independent from MACOSXAUTOMATION.COM and that MACOSXAUTOMATION.COM has no control over the content on that website. Please contact the vendor for additional information.