Housekeeping Scripts

You finally have an approval on that print project you’ve been working on for the last few months. All that’s left to do is make a PDF for the printer and be done with it, right?

Nope. It’s time to do some housekeeping on the file. Let me use this metaphor, once you’ve made dinner, you don’t leave your dirty pots and pans in the sink, do you?

It’s time to do some housekeeping, and in this episode of “must haves” on the Colecandoo Youtube channel, we’ll look at several scripts to keep your files nice and tidy.

Disclaimer

One word of caution with any of the scripts shown in the video. They are all destructive in nature. That is, they intentionally remove items from a document. Make sure you save your work prior to running these scripts, just in case they have a catastrophic impact on your artwork. I’m showing these scripts for educational purposes only, this is not a tutorial on how to use these scripts.

Images and Frames

Cleanup Pasteboard

The first script removes items from the pasteboard. Run the script and select the distance from the trim edge and importantly whether threaded text on the pasteboard should be removed.

I can hear some of you now saying “but what if I’ve left important notes on the pasteboard for the next person who works on the artwork”? Well, either don’t use this script, or put your notes on after you’ve run this script.

Empty Frame Remover

This script removes any purely empty frames, that is no fill or stroke that have no special settings applied such as text wrap or text on a path. Once run, it scans the document and removes all of these empty frames.

Trista DPI

The next script resamples all images over a given resolution to a more appropriate resolution. It’s great for projects such as yearbooks where the resolution of images is often far greater than it needs to be.

Now, I was in two minds to whether I show this script or not. Out of the scripts being shown in this video, this is both the most powerful and potentially most destructive of them. Ultimately, read the instructions before using this script, and make sure you have access to backups in case things go wrong.

Colour

Next, let’s address some colour issues that may have come about from selecting registration by mistake, or left-over swatches from a Microsoft Word import.

Unlike many scripts I’ve shown previously, most of these scripts are buried in forum posts, so it’s a matter of reading the post, finding the script, copying and pasting into a text editor and saving as a .jsx file.

It’s worth noting that all of these scripts only affect colours generated within InDesign, so won’t fix colour issues in links such as PDFs or photoshop files.

Add unnamed colours

Let’s start off with this easy one-line script that adds all unnamed colours to the swatches palette. True, it’s just as easy to select this from the swatches menu. Regardless how it’s run, this should be the first step to cleaning up the swatches. You can cut and paste it from below:

app.menuActions.item("$ID/Add All Unnamed Colors").invoke();

Reduce Colors

This script launches a prompt that allows you to search for colours that are a given percentage different from each other and merge them to the swatch that appears higher in the swatches panel.

If you’re using a special knockout black swatch and don’t want it to become the default black, perhaps make it a spot colour while running these scripts.

I explain the differences between these colours in more depth in Episode 14.

Registration Fix

This script converts all registration colour applied by InDesign to its respective tint of Black.

RGB/LAB GREY swatches to Shades of Black

I’ve written a script that converts RGB and LAB values that appear as shades of grey to equivalent shades of Black, while leaving other swatches alone to be dealt with by another script.

RGB/LAB swatches to CMYK

There’s another RGB/LAB converter, though this script converts all RGB/LAB swatches to CMYK values.

Faux Black fixers

There are two scripts that can take faux black values and convert them either to 100% black or rich black. The faux black is determined by CMYK values beyond certain percentages. In this case, any swatch that is over 70 Cyan, 60 Magenta, 60 Yellow and 90 Black will be converted to either 100% black or rich black. You can dig into the script if you like, and redefine what constitutes a rich black or faux black.

Remove unused swatches

This will remove any swatches not used in the artwork.

Styles, Master Pages and Layers

Let’s make sure that we only have the necessary styles, master pages and layers that are required for the artwork.

Remove unused masters

This script removes any master pages that have not been used in the artwork.

Remove unused layers

Next is this script that removes any layers that contain no artwork.

Remove unused styles and groups

This is a series of scripts that removes any styles not used in the artwork, as well as unnecessary style groups that may have been left, whether deep in folders or not. In the video it is combined into one “catch-all” script for convenience, but it is the work of many authors, so it’s not right for me to host it. Links to the originals can be found here, here, here, here and here.

Delete guides

Lastly, this script removes all guidelines in a document. I can see that there would be some use for guidelines to remain in a document, but felt it was worth demonstrating.

Preflight

To be sure that the artwork is completely free of issues, we want to make sure that there are no prepress issues. To make sure that the artist complied with the preflight that was associated with the document, there’s the preflight enforcer.

As shown on the Colecandoo Youtube channel before, I’ve prepared two scripts that will either warn or prevent a user from printing or exporting to PDF until all preflight issues are resolved.

So there you have it, over ten scripts that will help make housekeeping of InDesign files a lot easier. If there’s any that I’ve missed or you feel would be worthy of a future video, let me know via my contact page.

EAN-13s on a budget

colcandoo

From time to time, there will be a need for any designer to add an ISBN barcode or EAN-13 to artwork that is being created. Typically, the customer supplies the number by itself and the barcode is created from that number and placed into the artwork. The question is… how does that number turn into a barcode?

This article isn’t going to be a long and technical article about how barcodes are generated and the math/programming that goes into it. Instead, it will point to some available resources for generating the odd barcode here and there, rather than fully developed software that can batch produce barcodes and integrate with databases.

Most of this post refers to EAN-13 or ISBN style barcodes, simply because since 1 January 2007, ISBNs are 13 digits long and use the EAN-13 barcode format for their barcode structure and appearance. What this in turn means is that a solution that can generate an ISBN can also generate an EAN-13, a standard used by most of the world for generating product barcodes… except if you live in the USA or Canada where UPC is used more often.

To my knowledge, no Adobe nor Quark product (nor any product from its latest rival, Affinity) ships with a barcode module as default, but Microsoft Windows users who use Corel Draw will know that it ships with a barcode module and has done so for the past 15 years (just a hint Adobe if you’re looking for ideas or innovations for the next upgrade to Creative Cloud). That’s well and good, but if you’re like me – a Mac user running the Adobe Creative Cloud, Corel Draw isn’t an option.

If you’re also not in the market for dedicated barcode software (as there are hundreds of products that are available) but would like to create a barcode with the minimum of fuss from your desktop or laptop, there are three alternatives that I would suggest:

Plug-ins

Many of the paid plug-ins that are substitutes for the Data Merge feature of Adobe InDesign typically come with a barcode module or add-on. For example:

But if you’re a designer that isn’t after an enterprise solution for making hundreds or thousands of barcodes, but just wants one barcode for a self-publishing client or a craft brewery for their bottles, then many of these products are probably overkill.

InDesign Scripts

Because I work in InDesign most of the time, having the ability to create a book cover and barcode in the same application has advantages for me. That said, here are three scripts that are worth a try:

BookBarcode by Indiscripts – a paid script for Adobe InDesign (€39). It offers lots of customisation and allows for batch creation of ISBN barcodes. If the pennies are tight, there is a “try” version that creates a “vanilla” EAN-13 barcode without the added features and bonuses that would be required from a book publisher or brand agency.

EAN Barcode generator by Konstantin Smorodsky – free script available from the Adobe Add-ons site. Does one ISBN barcode at a time and is intended for general purpose EAN-8 or EAN-13 barcodes, but since ISBN barcodes fall into this category, this still qualifies. Does not put the human-readable ISBN above the barcode though.

ID Barcode by Nick Morgan and Bruno Herfst – free script that supports EAN-13, ISBN, ISSN, ISMN; some customisation of fonts, includes human-readable ISBN above the barcode, EAN-2 and EAN-5 supplemental barcode.

Websites

To my surprise, there are several websites that can create CMYK, text-as-curves, vector graphic barcodes that are worthy of consideration. Again, the internet has these sites in abundance, but of the sites that stood out were:

Terry Burton’s online barcode generator – This site creates a vast array of barcodes, yet alone EAN-13/ISBN. Options are limited per barcode, but if functionality is your thing, definitely a worthwhile website.

Bookow.com – Generates a vector PDF ISBN barcode. No customisation but contains human-readable ISBN above the barcode and all type is set in OCR-B. There are also other useful tools on the website for book publishers.

GS1 (EAN-13 barcode generator) – The Swiss site of the GS1 organization has a feature that creates EAN-13s. Again, no fancy bells or whistles but it does the job.

Free Barcode Generator – Another no-nonsense barcode creator with some options but without the fanciness of the scripts or plug-ins.

Free ≠ yours to do with what you will

The last 7 links have mentioned free resources, but remember that the creators of these resources have the same bills and overheads that you do. If their script has saved you time and effort, and their website has a way of making a donation, seriously consider making a payment to these developers who go out of their way to not only make these resources, but allow you to use them without charging a hefty sum.

 

 

%d bloggers like this: