AGScriptLearner
Explorer
AGScriptLearner
Explorer
Activity
‎Aug 24, 2023
01:14 PM
Yep. That would be very helpful. I have one for InDesign that exports PDFx1a>Medium>Low res pdfs all in one shot.
... View more
‎Mar 26, 2021
06:58 AM
Hi @Monika Gause , Sorry for the time it's taken to come back on this. So on one of the Catalina Macs, UTC was uninstalled and re-installed as part of a complete rebuild for a new user. This mac is running version 7.0.5 of UTC and experiences the font corruption. On my own Mac which is running Big Sur, I uninstalled UTC, then opened an artwork in AI. I obviously had no font management for that artwork but also I didn't experience the font corruption in Firefox. I have then reinstalled UTC up to the latest version of 7.0.10 and again opened some artwork files, and didn't have any font corruption.
... View more
‎Feb 04, 2021
04:12 AM
Thanks Carlos! Confirmed with a switch case save block of mine: case "CC" : //Legacy CC
return Compatibility.ILLUSTRATOR17;
break;
case "CC2020" : //CC V2 - Not backwards compatible CC, CC2014-CC2019
return Compatibility.ILLUSTRATOR24;
break;
/*******
* These do not work or exist
*******//*
case "CC2014" :
return Compatibility.ILLUSTRATOR18;
break;
case "CC2015" :
return Compatibility.ILLUSTRATOR19;
break;
case "CC2016" :
return Compatibility.ILLUSTRATOR20;
break;
case "CC2017" :
return Compatibility.ILLUSTRATOR21;
break;
case "CC2018" :
return Compatibility.ILLUSTRATOR22;
break;
case "CC2019" :
return Compatibility.ILLUSTRATOR23;
break;
case "CC2021" :
return Compatibility.ILLUSTRATOR25;
break;*/ Adding comment for posterity sake, in case people are searching for 18-23, and need quick reference to CC versions.
... View more
‎Oct 13, 2020
04:45 AM
It's all about referencing pieces of art as you wish.
The textboxes can be located in
Document: (doc.textFrames) - gets all the text frames in every layer and group.
Layer: (doc.layers[0].textFrames) - gets all text frames in one particular layer but not its contained sub-layers or groups.
Group: (doc.groupItems[0].textFrames or doc.layers[0].groupItems[0].textFrames) - gets all text frames inside of a group, but not its nested groups.
Once you choose your strategy for isolating the text frame then you can use loops to perform your action. If you don't regularly build functions, this is the perfect opportunity to do so because your widening function is perfect to be applied the same way inside any of those loops.
Here let's say we have several target text frames: several are direct children in the 1st layer and another one is in a 2nd layer but also in a group called "MyGroup".
We can actually 'harvest' the disparate textboxes into one collection by using loops to prepare one single array to be processed by a final loop.
// establish an empty array:
var myBoxes = [];
// Loop over a first place of interest to collect the items:
var txt;
for (var i = 0; i < doc.layers[0].textFrames.length; i++){
txt = doc.layers[0].textFrames[i];
myBoxes.push(txt); // this text box is collected.
}
// Next, add the other textbox from requirements: first textframe in group MyGroup in Layer 2 myBoxes.push(doc.layers[1].groupItems.getByName("MyGroup").textFrames[0];
// And now you can do a final loop to do the actual processing:
var thisBox; // setting iterated items as variables helps to read and cuts down on the cumbersome syntax "items[0][1]"
for (var i = 0; i < myBoxes.length; i++){
thisBox = myBoxes[i];
myFunc(thisBox); // your function processes the desired objects.
}
... View more
‎Jul 26, 2020
02:10 AM
Thanks for the reply Tom, I have posted in the Bugs section.
... View more