Copy link to clipboard
Copied
Hi Folks,
i am new to this forum, looking for a script for below concern, any kind souls help me on this
coming to the point
i am looking for a script or actions file for adobe illustrator that read's the text at bottom right corner side of the art board and save the file with that text number in eps, pdf and png format in illustrations output folder in a desktop
please find scenario based example below
example : inside my illustration art board at bottom right corner there is a text with numbering 616516, i want the my illustrator file to be saved with file number 616516 in eps, pdf and png format, in a folder named illustrations output in desktop.
preferably pdf to be saved in smallest file size.
let me know if any problem in understanding, if required i will create PPT for detailed explanation?
Experts please support!
Refer screen shots or attachments below,
Thanks,
Best Regards,
venky.
Copy link to clipboard
Copied
How good are your scripting skills?
There are dozens of scripts in the forum with the different save variants. Your project should not fail because of that.
You probably just have a problem extracting the number. Unfortunately, you have given too little information about it.
Let's assume that your document has only one layer and only one text frame with only the number in it. Let's further assume that your number is always 6 digits. Then this code should already help you get started (only passes the number to the variable aCon, but no save routines are built in):
var aDoc = app.activeDocument;
if (aDoc.textFrames.length == 1) {
var aCon= aDoc.textFrames[0].contents;
} else {
alert ("There may only be one text frame!");
}
if (aCon.match(/^\d{6}$/) != null ) {
alert ("Number: " + aCon + " detected.");
} else {
alert ("No 6-digit number available!");
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now