Replacing Text Placeholders in Object Text

AppleScript can be used to automate the task of locating and replacing text placeholders in text item containers. The following script demonstrates how a Pages template containing text placeholders can be quickly populated using automation and direct interaction with the script user.

NOTE: The following script also demonstrates how placeholder images are replaced with the content image files by changing the value of the file name property of an image.

This script acts as a production assistant by creating a filled-in document based upon a Pages template (in this example a tabbed flyer), after prompting the script user individually for key data elements to be used in the document creation. The script then automatically locates and replaces text and image placeholders with the provided references, greatly reducing the time required to finish the document.

A filled-in tab flyer document

TOP | CONTINUE