Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

If you use an Illustrator action on a selection, it applies it to that selection as a whole.

Illustrator actions can be applied as 'batches', but this means batches of files, not batches of objects.

Is there a way to apply an action to each object in turn (like Transform Each does), not the whole selection?

share|improve this question
add comment

1 Answer

With scripting yes. Modified the AI scripting docs:

var docSelected = app.activeDocument.selection;
if ( docSelected.length > 0 ) {
    if ( docSelected.length > 0 ) {
        for ( i = 0; i < docSelected.length; i++ ) {
            docSelected[i].selected = false;
            //Do Something to docSelected[i]
        }
    } else {
        docSelected.selected = false;
        //Do Something to docSelected[i]
    }
} else {
    alert( "Please select one or more art objects" );
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.