A script that could improve my whole job
- December 14, 2024
- 2 replies
- 893 views
Hi! I'm kinda new into scripting and writing js for Illustrator.
I work as a designer for a print shop, where we do all kinds of jobs and orders, some are from other designers or sellers (they send us their files for printing or production in general), and some others are for the general public (where we design ourselves).
Our workflow is based on the creation of a "client preview", where we make a template that has some basic info, such as the client's name, the requested material, the requested polishings or finishes, deadline for delivery and quantity of the production to print. It also contains the design itself, with dimensions on it (width x height, in cm or meters).
We send a screenshot of this preview to the client, they authorize it, and then we prepare our files for printing or production. The files always have the same resolution, the same margins or bleed/cutouts depending on the material, material width, polishings or finishes, or quantities (we make a unique file when we have multiple pieces of the same design).
usually the whole process takes about 15-20mins (When we get inmediate approval), and that's for making the client's preview and preparing the files for printing. But the process is always the same for every type of material, finishes and quantities.
My question is, Would it be possible to make a script that could do all these steps by only putting the needed information in the requested fields and specifying the margins and bleedouts for every type of finishes? If so, how much time do you think something like this would take to create from scratch?
The steps that would be needed are as it follows:
- set artboard size to artwork / create artboards for multiple artworks
- Generate the preview template, in a new layer that's under the art itself, with the requested info
- Generate dimension lines for the individual artwork/artboard or multiple artworks/artboards
- Create a folder with the current day of the month, within another folder with the current month, within another folder of the client's name (example: Rob Doe - December - 14)
- Generate a .tif file with different DPI's and margins, depending on the material (this info could be pretty much a drop-down menu or a database), or a .PDF file for DTF, or a .DXF file for Laser Cut, saved inside the folder mentioned above.
- Generate a .tif file with the artwork resized proportionally to 30cm at the biggest side (width or height), saved alongside the tif mentioned above.
If this is actually possible to make in a script, the whole process in my job would pass from 15-20mins to merely seconds. So I would love to know if everything I've mentioned here is actually posible to program, if so, where could I learn everything needed to get it working?
Here's a picture of what the client's preview looks like.
Thanks in adavance for reading all this! Gretz from Chile!
