Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

looking for a script or actions to save file in eps, pdf and png format with specific file number

New Here ,
Aug 02, 2023 Aug 02, 2023

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.

TOPICS
Experiment , Feature request , How-to , Performance , Print and publish , Scripting , Tools , Type
248
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Aug 02, 2023 Aug 02, 2023
LATEST

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!");
}

 

 

 

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