Register

Macro to rename all slides in numerical order

This forum allows users to share macros created with ViewletBuilder7 Enterprise and above.
User
Posts: 21
Joined: Fri May 26, 2006 4:09 pm
Location: Rochester, NY

Macro to rename all slides in numerical order

Postby Jo » Fri Feb 15, 2013 8:38 am

This macro will rename all slides to Slide 1, Slide 2, etc.

To use the macro, just copy the code below into a plain-text file named RenameAllSlidesInNumericOrder.groovy and save it into your Library/Macros folder.

Code: Select all
import com.qarbon.shasta.project.*;

log.debug "Rename All Slides In Numerical Order"

def slides = sequence.getChildren()
def index = -1
for(def slide in slides)
{
    index++
    slide.setName(slide.getLocalizedTypeName() + " " + (index + 1))
}

log.debug "Finished renaming slides to Slide 1, Slide 2, etc."
Qarbon support

Return to Macros

Who is online

Users browsing this forum: No registered users and 1 guest