Copy link to clipboard
Copied
I use variables to insert eps files as specified in csv. I can then do the following steps
With actions, I can't seem to select embed, and edit contents, so wondering if there is better way. Maybe with jsx? Eventually, I take these multiple compound paths, unite shapes, and cut solid sign out of metal.
let's start with releasing the mask, clipping group needs to be selected before running the command below
app.executeMenuCommand ("releaseMask")
at this point, your selection has both clipped items and clipping path. The clipping path should be the top path
selection[0].remove()
you could also check for a no-fill, no-stroke path before deleting it
Copy link to clipboard
Copied
Got a little closer by
Four click actions not horribe, but will continue quest for 1 click to rule them all. I will need to do this about 120 times a week from now until christmas. Looks like jsx is most power thing available for this kind of scripting. Will start to dig into that more.
Copy link to clipboard
Copied
can you share a sample file? It seems all steps can be achieved with a script
Copy link to clipboard
Copied
Attached some files, initial and final. Sometimes the football does not appear when I open the initial file, but clicking on that area will show it. I was able to embed with jsx, but couldn't figure out how to object ->clipping mask -> release. Thansks for your help! This jsx stuff looks awesome. I'm on windows 11 home.
Copy link to clipboard
Copied
let's start with releasing the mask, clipping group needs to be selected before running the command below
app.executeMenuCommand ("releaseMask")
at this point, your selection has both clipped items and clipping path. The clipping path should be the top path
selection[0].remove()
you could also check for a no-fill, no-stroke path before deleting it
Copy link to clipboard
Copied
Cool this works. I have to select item, so will work on doing that by vairable name next, as there will be multiple images to unite.
if ( app.documents.length > 0) {
doc = app.activeDocument;
selection[0].embed()
app.executeMenuCommand ("releaseMask")
app.executeMenuCommand ("ungroup")
selection[0].remove();
}