Setting Up a Document > About automating tasks > Applying steps to multiple objects

 

Applying steps to multiple objects

If you select multiple objects in a document and then apply steps to them from the History panel, the objects are treated as a single selection, and Dreamweaver attempts to apply the steps to that combined selection. For example, you can't select five images and apply the same size change to each of them all at once; a size change is an operation that must be applied to each individual image, not to a collective combination of images.

To apply a series of steps to each object in a set of objects, you must make the last step in the series select the next object in the set. The following procedure demonstrates this principle in a particular scenario: setting the vertical and horizontal spacing of a series of images.

To set the vertical and horizontal spacing of a series of images:

1 Start with a document in which each line consists of a small image (such as a graphical bullet or an icon) followed by text. The goal is to set the images off from the text and from the other images above and below them.
2 Select the first image.
3 In the Property inspector, click the Expand button (the arrow in the lower right corner) if necessary to see all of the image properties.
4 Enter numbers in the V Space and H Space text boxes to set the image's spacing.
5 Click the Document window's title bar (rather than clicking inside the document window) to make the Document window active without moving the insertion point.
6 Press the Left Arrow key to move the insertion point to the left of the image. Then press the Down Arrow key to move the insertion point down one line, leaving it just to the left of the second image in the series. Then press Shift+Right Arrow to select that second image.
Note: Do not select the image by clicking it, or you won't be able to replay all the steps.
7 In the History panel, select the steps that correspond to changing the image's spacing and selecting the next image. Click the Replay button to replay those steps.
The current image's spacing changes, and the next image is selected.
8 Continue to click Replay until all the images are spaced correctly.

To apply steps to an object in another document, use the Copy Steps button; see Copying and pasting steps between documents.