Questions tagged [indesign-scripting]

Questions about the automation and extending of functionality through the use of scripts within Adobe InDesign.

Filter by
Sorted by
Tagged with
15 votes
1 answer
17k views

Endnotes in InDesign: Closest thing to a pain-free, flexible workflow?

It's an age-old complaint: up to and including CS6, InDesign supports footnotes, but not endnotes. Documents, books, reports etc aren't going to stop needing endnotes because Adobe don't support them. ...
user56reinstatemonica8's user avatar
11 votes
1 answer
6k views

Indesign auto column width size for table based on the data containing?

I have a lot of tables that designers have to adjust slightly to fit the content. This takes a large amount of time in our process and I would like to know if there is anyway to skip this? Perhaps a ...
Totty.js's user avatar
  • 877
10 votes
0 answers
418 views

Add Git log as table to InDesign Document

I use InDesign CC as the last step in document processing. The source is written in Markdown and converted via pandoc to an InCopy document which gets linked to a text frame in InDesign. The whole ...
os_1's user avatar
  • 201
8 votes
3 answers
4k views

Script to always save IDML with INDD

Is there an existing script for InDesign that will save an INDD file and an IDML copy at the same time? I work with dozens of independent designers on collaborative projects, and those of us with ...
Arthur's user avatar
  • 233
7 votes
3 answers
2k views

Encyclopaedia-style InDesign running headers, where pages have many, one or zero headings

So, you can have a heading running on each page that varies automatically based on the most recent heading (or, occurrence of any other paragraph style) by putting text with InDesign text variables ...
user56reinstatemonica8's user avatar
6 votes
1 answer
380 views

Adobe InDesign: Set text justify for every other line

I'm looking for a solution to achieve something like the image below. I want to set justify and hyphenation for paragraphs except odd lines.
wonglo's user avatar
  • 61
6 votes
1 answer
1k views

InDesign script to verify spelling and grammar

I was curious to know if there is a way to or a script available within InDesign (any solution alternative is preferred) that I can batch check spelling and grammatical errors with either .indd or ....
user9447's user avatar
  • 18.3k
6 votes
1 answer
529 views

Script to create heat map in InDesign 5.0 PC?

I have a table with digits. I want to change the percentage of the fill of each cell to this digit. Example:
Pylyp's user avatar
  • 171
5 votes
1 answer
3k views

InDesign: how to remove everything between square brackets

I have a script to find all textframes in a document, and do a regular expression to remove (if contains) all text inside square brackets. For example the text frame might contain: "Lorem ipsum ...
lanes123's user avatar
  • 197
5 votes
3 answers
2k views

Mass export all images as individual JPEGs in InDesign?

I am new to Indesign. I have a file that contains images with Photoshop clipping paths. I want to export all the clipped images in a folder. I have tried doing the "Copy Links To" and it successfully ...
Rachelle Ann Facistol Mata's user avatar
5 votes
1 answer
2k views

Indesign - remove empty cells from table

I have imported XML which contains nested tables and have created a script to remove all empty cells which is as: var myDocument = app.activeDocument; for(var i=myDocument.textFrames.length-1; i>=...
lanes123's user avatar
  • 197
5 votes
1 answer
295 views

Table of content with page number and quadrant

I want to create the table of contents automatically and depending on where the linked word appears on the two columned pages there should also be mentioned the quadrant after the page number in the ...
Nicolas's user avatar
  • 51
5 votes
1 answer
1k views

Script for InDesign that checks for halftone spot colors?

Thanks to the help of various people here, I've just about nailed this script for InDesign that I'm working on. There's only one other bit that, while not 100% necessary, I would love to be able to ...
Sturm's user avatar
  • 171
5 votes
1 answer
1k views

Add column break and space to using paragraph using styles

I'm going to design a fairly large festival programme and wish to make use of XML to ease the process. But I need to be able to make column break after each entry, and also add spacing after certain ...
Jakob Thuemoes's user avatar
5 votes
1 answer
1k views

How to OTF export the font I created in Indyfont?

I've created a custom made bullet and used the indyfont script to set up the export but I'm not able to click on the the OTF export button. I'm not sure what to do.
Bianca's user avatar
  • 71
4 votes
1 answer
596 views

InDesign script that generates percentages as page numbers

Does anybody know of a script that could calculate percentages within an InDesign document? To clarify - I want to use this essentially as a page number: page 5 of 10 would be 50%, for example. If no ...
Josh Krauth-Harding's user avatar
4 votes
2 answers
912 views

Save to IDML script not working in CC2017

I'm relatively new at using scripts & the ExtendScript toolkit - and I'm working in an office environment where I'm using Adobe CC2017 and coworkers are using CS5. In order for my InDesign files ...
Joshjurg's user avatar
  • 553
4 votes
2 answers
1k views

Is there a way to script InDesign to read the EXIF information of a photo?

I'm thinking of making a photo portfolio in InDesign and I have the following functionality in mind: First I would make a document of several pages containing placeholder images. Each page has a ...
Saaru Lindestøkke's user avatar
4 votes
2 answers
862 views

InDesign, Grep and Syntax Highlighting

I have to make an e-book that contains code snippets. I am using GREP to select all code tags (bounded by <> — triangular brackets), and apply a custom style to them. The RegEx I have developed: ...
Tudor's user avatar
  • 43
4 votes
1 answer
935 views

How can I use GREP to get all text between the third and fourth underscore in a file name?

In the firm I work for, they have file naming system. It always has 5 sections as in the examples below: File Name: YYMMDD_PROJECT NUMBER_PROJECT NAME_FILE NAME_initials.ext 140527_207_AL MURR ...
user3244505's user avatar
4 votes
1 answer
140 views

InDesign to Photoshop Process [closed]

I have this Script to distribute objects to its own layers. var mySels = app.selection.length; if (mySels == 0) { alert("Select the object and Run the script"); exit(0) } else { while (...
boo-zi's user avatar
  • 41
4 votes
0 answers
1k views

inDesign: Place textframes relative to other textframes, with automatic repositioning on resize

I use javascript to create an inDesign file containing multiple textframes. During script runtime, the textframes are easily positioned at the right place. The problem arises, when I change the text ...
David's user avatar
  • 41
3 votes
3 answers
4k views

In Indesign, is there a way to delete all frames with a specific Object Style applied?

I need a plugin, or script that deletes frames with a specific applied style. Or if there is already a tool exists in Indesign please guide me there.
Roozbeh E's user avatar
  • 384
3 votes
2 answers
1k views

Number paragraphs at end in Indesign

I am creating a document which needs to have the paragraphs numbered at the end. For example: "If you don’t want to use one of the existing bullet characters, you can add other bullet characters to ...
One Face's user avatar
  • 171
3 votes
1 answer
2k views

Indesign script to apply paragraph style to alternating paragraphs

I have an Indesign document with the following structure: paragraph 1 blah blah blah blah blah blah blah blah paragraph 2 blah blah blah blah blah blah blah blah paragraph 3 blah blah ...
TheLearner's user avatar
3 votes
3 answers
3k views

InDesign: workflow for translating texts

I have quite a large document, a product catalogue to be specific, which I have to translate. I tried doing this manually and exporting to RTF, which is tedious because of the rearrangements I have to ...
Ervin Kovacs's user avatar
3 votes
1 answer
910 views

InDesign: Can I automate Master Page assignment to multiple, non-contiguous, pages without using page numbers?

I need to replace a couple existing master pages with other existing master pages. I am familiar with how to replace master pages in general. I have Master Pages - A, B, C, D, E, F. I need to replace ...
Scott's user avatar
  • 209k
3 votes
1 answer
1k views

How to select or copy all text in InDesign document

I want to select all text content of every page in an InDesign document or copying all text in InDesign document. I have tried scripting method, but did not work.
karky's user avatar
  • 31
3 votes
1 answer
8k views

Resizing ALL images on ALL pages in Indesign Document

i'm looking for an easy way to resize roughly 40 pages of barcode PNGs in indesign. If i can cut off approximately 50-60% of each barcode....well, you can see how many pages i would save at the ...
mephisto21's user avatar
3 votes
1 answer
5k views

Is it possible to automatically remove the same object from every page in InDesign?

I have a pre-made document and I want to remove a line (same length, same stroke, same color) from every page. Is there a quick way to do this aside from deleting manually?
user26405's user avatar
3 votes
2 answers
10k views

Unique serial number on page each time a pdf or indesign doc prints

I have to design a document for internal use that needs a unique serial number on copy of the sign off sheet. I'm aware that InDesign has a numbering function (to number book/magazine pages) but what ...
sam's user avatar
  • 1,711
3 votes
1 answer
389 views

Toggle 'Paste Remembers Layers'?

I've come across a script for InDesign that toggles on the 'Paste Remembers Layers' menu item. I would LOVE a visual toggle as I use this all the time but for now this will do (unless anyone knows of ...
Clomo's user avatar
  • 31
3 votes
1 answer
398 views

Creating dynamic page variables for a statewide report

I need to develop a report that publishes data collected from all of the counties in the state. The layout format for each county is the same but the graphs and charts with ten data points vary. I ...
Ponomo1997's user avatar
3 votes
1 answer
600 views

Bullet list syntax for Adobe InDesign script

I'm looking for the syntax that defines bullet points so that I can create a bullet list in a script for use as a guide template for other users. At a guess my best bet so far is that it's under '...
J Webb's user avatar
  • 33
3 votes
1 answer
2k views

In InDesign how can you script to detect a locked object?

I have an InDesign brochure that I'm trying to script against however I'm running into issues. When I try to script against the 100 page brochure I get an: Error Number: 11274; Error String: ...
user9447's user avatar
  • 18.3k
3 votes
1 answer
253 views

Unlock page item InDesign without breaking thread

I have tried to override page items in InDesign page. In master page the text frames are threaded while I try to override master page items in the first page of the InDesign document the frame thread ...
Prakash's user avatar
  • 31
2 votes
1 answer
3k views

InDesign script to list hyperlinks in active document

I am trying to get a list of hyperlinks from my document printed in the console or output to text file. This is what i'm playing with: for (k=0; k<app.activeDocument.hyperlinks.length-1; k++) { ...
Lucian's user avatar
  • 29.3k
2 votes
3 answers
1k views

InDesign script to remove auto-sizing option from specific text frame

I'm trying to write an ExtendScript script for InDesign to automatically generate a catalogue, which will be based on an inputted XML file. As by now, I'm defining different page types for different ...
Gabriel Rambaud's user avatar
2 votes
2 answers
1k views

Importing learning cards in Indesign from EXCEL or XML or JSON file while keeping some basic formatting

In an EXCEL or XML/JSON file I have stored the contents of learning cards: one column for front side of the card, one column for the back side of the card. I want the cards to be layouted in Adobe ...
Madamadam's user avatar
  • 123
2 votes
1 answer
1k views

How to convert all raw-embedded images to placed files?

A slightly related question deals with exporting all placed files into a single folder. My problem is unfortunately deeper: The original author directly pasted screenshots into the InDesign document, ...
Tobias Kienzler's user avatar
2 votes
2 answers
1k views

How to script a popup box before closing a document - InDesign

I have used javascript to script before, using an eventlistener to say app.addEventListener( "beforeClose" , [function]); function [functionname]() etc... What I need is a way to tell InDesign '...
Benjamin Lake's user avatar
2 votes
1 answer
2k views

What is the difference between .jsx and .js?

I am new to Adobe Scripting - what is the difference between .jsx and .js?
Brian's user avatar
  • 231
2 votes
2 answers
2k views

How to fix disproportional scaling across multiple images at the same time in InDesign?

In InDesign CS6, you have to directly select an image and scale up or down after clicking the "constrain proportions" chain-link button in order to revert the proportions back to normal. When ...
user avatar
2 votes
2 answers
1k views

InDesign plug-in for random text variations in size and position

I'm trying to typeset a book with an "old" / "handmade" look, with little irregularities, shuffled up kerning and spacing, letters that are slightly unaligned, and so on. More or less like in this ...
LorenzCK's user avatar
  • 123
2 votes
1 answer
3k views

Script to Change Table Style - InDesign CC

I have an InDesign CC 2018 document which I imported a docx file. The file contains a lot of tables. I want to apply a table style to all of the tables, but we are talking hundreds of tables. Is ...
Melvins138's user avatar
2 votes
1 answer
2k views

Mass export all images as individual JPEGs in InDesign, but not use image frame ratio

I would like to mass export all linked images in a Indesign document using this script, its from this thread var myDoc = app.activeDocument, apis = myDoc.allPageItems, pageItem, fileName; while ( ...
Rombout Versluijs's user avatar
2 votes
1 answer
2k views

Indesign: exporting multiple certificates, each with a different name, into separate files

I'm looking for efficient way of importing the 1000+ individual names into an InDesign document then exporting out as an individual PDFs (a 1000 page pdf wont work). One name per page. I have created ...
Leon's user avatar
  • 23
2 votes
1 answer
1k views

Find unwanted paragraph marks (GREP, find, replace, script)

I have an InDesign CS6 document with a lot of numbered paragraphs. They begin with a number and end with a paragraph mark. However, there are some paragraphs which have unwanted paragraph marks in the ...
Ad Astm's user avatar
  • 155
2 votes
3 answers
350 views

Convert paragraphs to specific style based on content?

I really like plain text writers, such as Ulysses and the recently found Bear (both Mac). I'm currently writing my thesis and I enjoy styling. However, something that really annoys me is the gap ...
Sander Schaeffer's user avatar
2 votes
2 answers
4k views

Indesign script to replace paragraph style

I am using ID CC 2014 on a Mac and there's a huge file with several hundred pages where I need to delete a certain paragraph style replacing it with another. Say there's a para style called "style-1". ...
TheLearner's user avatar