Replacing Image Placeholders

In Pages, there is a difference in the default behavior between creating a new image and replacing an existing placeholder image.

CREATE IMAGE: When a script creates a new image, the image container is automatically wrapped to fit the image, regardless of any sizing indicated during the execution of the make command.

REPLACE IMAGE: When a script replaces a placeholder image with an image file, the imported image is scaled and centered so that its shortest side fits within the placeholder view.

The example script on this page demonstrates image placeholder replacement by importing photos from a chosen iPhoto album into a tabloid-sized template containing rows of square image placeholders.  (⬇ see below ) 

The image thumbnail document poplulated with photos.

Populate Thumbnail Template

DO THIS ►Before opening and running this script, DOWNLOAD and install the “Thumbnail Poster” template.

Here’s the script:

TIP: This template can be populated because the description for each placeholder image contains a number indicating its position in the order of placeholders on the page.

TOP | CONTINUE