Skip to main content
Participant
September 27, 2025
Answered

Illustrator Equivalent: Save Selection Feature

  • September 27, 2025
  • 2 replies
  • 162 views

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

Correct answer CarlosCanto

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

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;