Skip to main content
Participant
Sep 27, 2025 3:10 PM UTC
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
Sep 27, 2025 7:47 PM UTC

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
Sep 28, 2025 2:31 AM UTC

@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
Sep 27, 2025 7:47 PM UTC

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