Highlighted

Minus Front in Pathfinder with Extendscript

Community Beginner ,
Oct 22, 2020

Copy link to clipboard

Copied

Using Extendscript, I'm trying to automate a process that includes the use of the Pathfinder tool, specifically Minus Front. The issue is that Minus Front doesn't exist amongst the list of executable commands even though the majority of the other options do.

 

Here's the list: https://ten-artai.com/illustrator-ccver-22-menu-commands-list/

 

Searching for pathfinder shows that all the options exist except Minus Front. This means I'm trying to find a workaround with Minus Back instead, but I can't seem to get it to work either.

 

How do I effectively get Minus Front automated via Extendscript?

 

Thanks.

Adobe Community Professional
Correct answer by Charu Rajput | Adobe Community Professional

Hi,

Try following snippet

app.executeMenuCommand('group');
app.executeMenuCommand('Live Pathfinder Subtract');
app.executeMenuCommand('expandStyle');
app.executeMenuCommand('ungroup');
TOPICS
Feature request, Scripting

Views

82

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Minus Front in Pathfinder with Extendscript

Community Beginner ,
Oct 22, 2020

Copy link to clipboard

Copied

Using Extendscript, I'm trying to automate a process that includes the use of the Pathfinder tool, specifically Minus Front. The issue is that Minus Front doesn't exist amongst the list of executable commands even though the majority of the other options do.

 

Here's the list: https://ten-artai.com/illustrator-ccver-22-menu-commands-list/

 

Searching for pathfinder shows that all the options exist except Minus Front. This means I'm trying to find a workaround with Minus Back instead, but I can't seem to get it to work either.

 

How do I effectively get Minus Front automated via Extendscript?

 

Thanks.

Adobe Community Professional
Correct answer by Charu Rajput | Adobe Community Professional

Hi,

Try following snippet

app.executeMenuCommand('group');
app.executeMenuCommand('Live Pathfinder Subtract');
app.executeMenuCommand('expandStyle');
app.executeMenuCommand('ungroup');
TOPICS
Feature request, Scripting

Views

83

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 22, 2020 0
Engaged ,
Oct 22, 2020

Copy link to clipboard

Copied

app.executeMenuCommand("Live Pathfinder Subtract");

 

Group the pathItems first.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 22, 2020 4
Community Beginner ,
Oct 29, 2020

Copy link to clipboard

Copied

This works visually but doesn't actually cut out the paths themselves - not that I specified that as a need in my original post. The other reply here seems to work best in this case by solving that problem as well.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 29, 2020 0
Engaged ,
Oct 29, 2020

Copy link to clipboard

Copied

Yes, this corresponds to the pathfinder effect in the effect menu and applies an effect, an appearance attribute, which would then need expanding.  There is no counterpart to the pathfinder panel in ExtendScript.  

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 29, 2020 1
Adobe Community Professional ,
Oct 22, 2020

Copy link to clipboard

Copied

Hi,

Try following snippet

app.executeMenuCommand('group');
app.executeMenuCommand('Live Pathfinder Subtract');
app.executeMenuCommand('expandStyle');
app.executeMenuCommand('ungroup');
Best regards

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 22, 2020 5
Community Beginner ,
Oct 29, 2020

Copy link to clipboard

Copied

Works perfectly. Thank you!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 29, 2020 1
Resources