How to expand the selected object or group using script?
Copy link to clipboard
Copied
I didn't see any documentation about that
Explore related tutorials & articles
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
i want Object > Expand my selected group using extend script
Copy link to clipboard
Copied
This command opens the Expand dialog box.
app.executeMenuCommand('Expand3');
Copy link to clipboard
Copied
Thanks, it works, is there any way to avoid from this dialog?
Copy link to clipboard
Copied
Simulate Expand through effects, then apply Expand Appearance.
app.executeMenuCommand('Live Outline Object');
app.executeMenuCommand('Live Outline Stroke');
app.executeMenuCommand('expandStyle'); // Expand Appearance
Copy link to clipboard
Copied
Thax bro its help me alot.

