Script HTML5 Export from InDesign using the in5 API

Justin | ExtendScript,extensions,HTML5,InDesign,software | Monday, May 29th, 2017

Check on this new video on how automate the exporting of HTML5 from InDesign using in5’s API.

The scripting automation makes it easy to batch process large numbers of InDesign files.

You can test out the API with the free trial of in5.

CC Installer Added for Illustrator Merge Text Extension

Justin | ExtendScript,extensions,Illustrator | Thursday, January 1st, 2015

See the original post for the download link.

Free Hex Color Scripts Now Available with in5

Justin | design,ExtendScript,extensions,HTML5,InDesign | Friday, April 19th, 2013

Adobe InDesign originated as a page layout application for print documents. Over time it has evolved into much more. Our tool, in5, exports HTML5 directly from InDesign and automatically converts CMYK, LAB, and RGB colors (as well as tints) into hex values. Hex is the default language of color on the web. Hex combines 6 characters that can be digits or one of the first 6 letters of the Arabic alphabet (A-F).

If you prefer work with hex colors in InDesign…now you can!

Both scripts are available in the Scripts window once installed (double-click on a script to run it):

Scripts Panel

Add Hex Swatch

The Add Hex Swatch allows you to enter a hex value in the Color field. You can enter the value with an opening pound sign (#) or 0x (used for hex values in programming languages)…or leave it off entirely. The color of the palette provides a real-time preview of how the swatch will appear.

You can enter a Name (optionally), or the hex value itself will be used for the name of the swatch.

Add Hex Palette

If you don’t have any documents open, the swatch will be added to the InDesign application default swatch set.

Export Hex Swatches

As I mentioned above, in5 already converts and exports swatches when producing HTML, but perhaps there are occasions where only the swatches are needed. This may be the case if you’re working with a developer.

The box below shows a live preview of how the hex swatch export appears. All the information is stored in a single, self-contained HTML file that can easily be shared or emailed.


The hex color scripts are installed free with in5. A license is required to use the full edition of in5, but these 2 scripts will work even if you don’t have an in5 license. So, head over to the in5 download page and get the latest version (which includes the hex color scripts).

(If you have the Kickstarter edition, open the in5 dialog and go to Info > Updates > Check now… to download a version that includes these 2 scripts).

Copy InDesign Fonts to Folder

Justin | design,ExtendScript,extensions,InDesign | Tuesday, April 16th, 2013

InDesign guru, AnneMarie Concepcion ‏ (@amarie), put out a request for a script to copy fonts from an InDesign document to a folder. So I put together this script.


Double-click on the script in the Scripts panel to run:


It will prompt you for any conflicts:


…And display results at the end:



  1. Unzip the download package.
  2. Double-click the CC installer that matches your system (Mac/Win). For CS4-CS6, double click the MXP file (inside the CS4-CS6 folder) to install using Adobe Extension Manager.


Copy Fonts to (CS4 and newer)

MergeTextFrame for InDesign has new features!

Justin | design,ExtendScript,extensions,InDesign | Saturday, April 3rd, 2010

Version 1.1.0 now has the ability to batch-merge textframes within every page of the current document. I had several requests for something like this (including from a recent donor). Here it is! The download links above have been updated.

The new version now has the “Apply to” and “Ignore locked layers” as shown in the image below.

Merge Textframes version 1.1.0 new features

Note that any warning messages about having too few textframes selected have been delayed until after the dialog box appears to reflect the new options.

Downloads of the new version are available on the original post.

Want a good way to move your extension request to the top of the list?

Page 1 of 212