Skip to main content
Participant
September 27, 2025
Answered

Illustrator Equivalent: Save Selection Feature

Is there an Illustrator equivalent for InDesign's doc.selection.storeSelection() or app.selection.store() functionality?"

CarlosCanto
CarlosCantoCorrect answer
Community Expert
September 27, 2025

Illustrator api doesn't have those explicit methods but these do the job

 

// save selection
var sel1 = activeDocument.selection;

 

// select saved selection
activeDocument.selection = sel1;

 

2 replies

m1b
Community Expert
Community Expert
September 28, 2025

@hans_4621 I'm afraid you've been misinformed. Indesign doesn't have either of those methods. In Indesign we get and use the selection just as Carlos described. - Mark

Translate
CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
September 27, 2025

Illustrator api doesn't have those explicit methods but these do the job

 

// save selection
var sel1 = activeDocument.selection;

 

// select saved selection
activeDocument.selection = sel1;

 

Translate