Skip to main content
Participating Frequently
September 7, 2023
Question

How to expand the selected object or group using script?

  • September 7, 2023
  • 1 reply
  • 1247 views

I didn't see any documentation about that

1 reply

Sergey Osokin
Inspiring
September 7, 2023

What command are you looking for? Expand, Expand Appearance, Type > Create Outlines, Outline Stroke? There are app.executeMenuCommand('menuCommandString') commands that are not included in the ExtendScript documentation. See this table https://judicious-night-bca.notion.site/app-executeMenuCommand-43b5a4b7a99d4ba2befd1798ba357b1a

AhmeedevAuthor
Participating Frequently
September 8, 2023

i want Object > Expand my selected group using extend script

 

Sergey Osokin
Inspiring
September 8, 2023

Thanks, it works, is there any way to avoid from this dialog?

 

 


Simulate Expand through effects, then apply Expand Appearance.

 

app.executeMenuCommand('Live Outline Object');
app.executeMenuCommand('Live Outline Stroke');
app.executeMenuCommand('expandStyle'); // Expand Appearance