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
1 vote
1 answer
41 views

Script in InDesign to separate document into individual files with naming capabilities

I'm looking for a script that can separate a document into individual InDesign files that, upon extraction, allows for some naming capabilities for each page such as either: adding a suffix (page ...
user avatar
1 vote
2 answers
46 views

InDesign : Lock/unlock every layer of a document at once

Is there a way to lock or unlock every layer not of page, but of the entire document? CTRL + A and CTRL + L on every page is quite tedious. With a script I guess? Thanks, Julien
user avatar
0 votes
0 answers
65 views

Auto Hyperlink to all daily pages with montly calender?

I am working on a yearly digital planner using InDesign 17.0, currently putting all hyperlinks manually (Right-click on monthly calendar date -> hyperlink and select the corresponding daily page ...
user avatar
0 votes
0 answers
60 views

Auto decimal for numbering in Indesign

Is there a way to make numbers separated with decimal symbol automatically and non-destructive in Indesign? For example there is large numbers in my article which I'm designing now: I have "six ...
user avatar
  • 372
1 vote
1 answer
41 views

Automatically add header text to a box via object style in InDesign

I'm laying out a book that occasionally has sidebars and footnotes formatted in a box. At the top of each of these boxes, I'd like to have a tiny header that reads 'from the archives'. I'm looking for ...
user avatar
0 votes
0 answers
16 views

InDesign Scirpting. Strange behaviour of document.loadMasters() function in case if file has been saved in newer version of InDesign

i noticed strange behaviour of function document.loadMasters() in case if i run a script in a lower version of InDesign in compare to one which i used to save a file. So, i did next steps to reproduce ...
user avatar
1 vote
1 answer
56 views

Modify width of all text frames in a document

I have text frames on over 200 pages, Is possible to select all text frames at once and decrease their width through Text Frame Options or any other method, as the edges of text frames are closely ...
user avatar
1 vote
1 answer
68 views

Append avatar image to each paragraph in chat style book

I have more than 4000 messages, and I want to create a book for these messages in chat style Look at this screenshot, it's just an example Now, everything is ok, but I want to append an avatar image ...
user avatar
1 vote
1 answer
138 views

Replace all fonts in In Design in all open documents

I need to perform the function of this (InDesign script to replace all fonts in a document) script across all open documents or all documents in a book. Can this be done?
user avatar
0 votes
1 answer
50 views

How to create a line that spans automatically right from the text til the end of the text frame

I am looking for a solution how to create a line that automatically spans to the right from the conditional text: As you can see above I just solved it at first with a static line. As soon as we ...
user avatar
  • 189
0 votes
0 answers
80 views

InDesign script to make auto-sized frames hold descenders: how to make it work?

I found the following promising script by Jon S. Winters, function holdDescenders ( aTextFrame_o , extraHeight_n ) { //------------------------------------------------------------------------- //-- ...
user avatar
0 votes
1 answer
227 views

inDesign Script to "when textbox created paste clipboard content in it"

I have no experience with scripting, but I can maybe explain what the intented script should do: Select text, cut it. Ctrl + X after mouseUp. Make textbox (manually). Drag with mouse, if possible &...
user avatar
  • 1
0 votes
0 answers
36 views

Multiple document merge one book with clickable toc

I have multiple chapter 20 InDesign files. All files have separate master pages and numbering. I want to create one book with TOC clickable. How to do? Also, I want to publish an e-book with a fixed ...
user avatar
-1 votes
3 answers
413 views

Indesign replace multiples links by other folder images

I don't find a script or tricks to do that, i would like to replace ALL images by other folder (with different images). exemple: i made a template with 4 box who contain the same image : toto.jpg, ...
user avatar
1 vote
1 answer
166 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 ...
user avatar
  • 11
0 votes
0 answers
514 views

Indesign 'paste in place' doesn't work

It doesn't matter if it's an SVG, Jpeg, Text box or frame, every time I copy (cmmd + c) and paste in place (cmmd + shift + option + v) anything, InDesign paste's it in the centre of the spread. I've ...
user avatar
3 votes
1 answer
443 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 ...
user avatar
  • 197k
0 votes
1 answer
144 views

Importing Excel table to InDesign

I am having a problem when importing a table from Excel to Indesign. I am getting errors when there is a formula behind text in the table. If the formula results in a number, the number is imported ...
user avatar
3 votes
1 answer
488 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.
user avatar
  • 31
1 vote
0 answers
43 views

Indesign - FindChangeByList exclude character style (or hyperlinks)

I have a FindChangeByList search that replaces a divis between numbers with an en-dash with an 1/24 quad before and after. Unluckily it includes our Hyperlinks too and thus destroys them. Is there a ...
user avatar
  • 363
-1 votes
2 answers
401 views

GREP for non-breaking space after initials

I'm laying out a bibliography in ID, and I need a way to insert a non-breaking space after initials, so A., B., etc. don't end up at the end of lines. Thanks in advance.
user avatar
6 votes
1 answer
197 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.
user avatar
  • 61
2 votes
1 answer
110 views

InDesign Data Automation for Books, not Catalogs

I have a use case where I’d like to use a bunch of small pieces of data from a database, in random places inside a large book. My book has hundreds of photos (with captions and credits) and over a ...
user avatar
  • 3,198
0 votes
1 answer
121 views

How to place xml nodes into indesign pages (one by one)?

I am trying to place a lot of tables into my document, one by one, but i can't place more than 1 table, does anybody knows how to place each table on one page or textframe? I am using xml nodes like ...
user avatar
0 votes
1 answer
497 views

Indesign: Frame on masterpage always on the front,

Background: Our PIM system allows us to create a generated catalogue for our clients. For this client we are placing images on top of each other to create the illusion of items being displayed with a ...
user avatar
  • 101
1 vote
2 answers
328 views

InDesign Script new layer naming by page number

I've got an odd query where I need to take all the objects on a certain layer and put them each on a separate new layer so they can be exported as individual PDFs (and converted to png). I've found a ...
user avatar
  • 13
0 votes
2 answers
187 views

How to change paragraph composer using script?

Is there a script command that can reassign the adobe paragraph composer to 'World paragraph composer'? The InDesign ExtendScript API(12.0) does not seem to have a command. I basically want to ...
user avatar
  • 161
2 votes
2 answers
463 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 ...
user avatar
  • 123
2 votes
1 answer
117 views

Finding and replacing footnotes inside punctuation

Is there any way of finding and replacing footnotes inside punctuation with the same number footnote outside the punctuation? I don't mind doing separate find and replaces for all conceivable types of ...
user avatar
1 vote
2 answers
480 views

InDesign / Delete entire line if field is empty

I'm working on automating donations and was wondering if, when using Data Merge, it is possible on export to auto remove a line, if those fields don't have any data in them. Per example, After Data ...
user avatar
  • 13
1 vote
2 answers
1k views

import CSV content to InDesign document with script

I have a Daily Planner (400+ pages) created in InDesign. Each daily page has date. The 365 daily pages start from page 17 to 382 in my InDesign document. I figured it would be better to add weekday to ...
user avatar
0 votes
2 answers
174 views

Adobe Indesign: How to measure the width of a word?

Is it possible to measure the width of a word in some way? (via Javascript code, or a built-in software option)?
user avatar
1 vote
0 answers
160 views

Grepping with app.findGrepPreferences.appliedFont fails for Walkman-Chanakya-905 (TT)

I have InDesign JavaScript code that replaces strings of specific fonts. Tt works (mostly) including for appliedFont values containing spaces and dashes e.g. Walkman-Chanakya-905, Devlys 180 Thin:- ...
user avatar
  • 159
0 votes
1 answer
121 views

Why does InDesign search not begin at beginning?

I am using a script to copy sequential lines from an input text file into an InDesign document. I have used the script a number of times with no problems. var fi = new File("C:/Documents/input.txt") ...
user avatar
  • 35
0 votes
1 answer
265 views

Extracting InDesign layer names to text or .csv

How can I extract a list of all layer names into either a text or .csv file.? What Acrobat or scripting tools are available to do this task? The list will be used to create a table communicating to ...
user avatar
  • 116
1 vote
1 answer
309 views

How do I detect an empty text frame with hidden data frame markers?

I have been using the DeleteEmptyFrames.jsx script from the interwebz and it works in text frames containing nothing, but fails when the frame had a data merge field that contained no data when ...
user avatar
  • 31
0 votes
2 answers
2k views

How can I export a PDF from InDesign with Javascript?

I want to find a script (preferably Javascript) and all it needs to do is export a PDF to a specific folder that I can set the path for in the script. Does anyone know of a script that might have ...
user avatar
  • 1
-2 votes
1 answer
194 views

How to change tables and cells styles all at once by using Java script?

How to change tables and cells styles all at once by using Java script? I want a dialogue box to enter stroke weight. Thank you
user avatar
0 votes
1 answer
3k views

InDesign script targeting specific text frames

I have an InDesign document with ~550 pages. On an every page, there are 4 frames. All the pages look the same (see image below). I'm using CS6. I'm new to scripting and a little lost here. I need ...
user avatar
  • 1
2 votes
0 answers
52 views

Data Merge 7 barcodes on 1 page 4000 times

I have to place 7 different barcodes on to 1 page but then they run 4000 times sequentially. I tried to use scripts such as ImagesToCSV, but the images don't link when merged. Other option is to ...
user avatar
1 vote
1 answer
854 views

InDesign script to insert pages between existing ones

I try to create a very simple script that adds one page after every existing page of the document and applies one of the masters to it. Unfortunately I have a problem with referencing objects in ...
user avatar
4 votes
1 answer
354 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 ...
user avatar
1 vote
3 answers
808 views

How to renumber static numbers in InDesign CS6

I have a series of static numbers in my InDesign CS6 document (e.g. 256, 257, 258, 259...). All numbers have a given character style (i.e. Footnote). I would like to find the numbers and renumber ...
user avatar
  • 35
1 vote
2 answers
273 views

Automatically Resetting the Current Workspace on Startup

I'm looking for a way to force InDesign to reset its current workspace when I start the program. I have created the jsx script below and placed it into the startup scripts folder. It does a great job ...
user avatar
  • 3,611
1 vote
2 answers
86 views

How can I test and apply certain changes to all documents in a book file?

I have a book file with around 75 documents amounting to 1927 pages. All of these documents contain the same paragraph style 'Body'. My first question is: How can I "test" a change in 'Body' to all ...
user avatar
0 votes
1 answer
231 views

How to apply specific object style to textFrames, those starting with anchored graphic frame?

I have a document (InDesign CS6) with a story, using text frames as placeholders. These text frames all have a graphic frame as first paragraph, going on with some other paragraphs with text. Now, i ...
user avatar
  • 1
1 vote
1 answer
355 views

InDesign FindChangeByList Search for Text in a Style

Simple question: What is the Javascript syntax for adding a Paragraph or Character Style to a search in the FindChangeByList.txt file? As in: grep {findWhat:"Anything", findStyle"Bolder"} Thank you....
user avatar
0 votes
1 answer
125 views

InDesign CC FindChangeByList How do you remove a style?

This should be really simple and is probably some documentation I can't find. I need to remove a Character style from a query. I've tried the following that do not work: {CharacterStyle.remove} {...
user avatar
0 votes
2 answers
116 views

Does anyone know of a script to sort words in single a paragraph alphabetically?

There is a standard script to sort multiple paragraphs alphabetically in InDesign, but I am looking for a script to sort words within a single paragraph alphabetically. Does anyone know of such a ...
user avatar
  • 1
2 votes
0 answers
683 views

How can I restart footnote numbering every chapter?

Each chapter begins with a title 'Chapter 1; ...' I've given every chapter title the same paragraph style. Now, I have multiple footnotes in each chapter. I'm aware I can choose to number footnotes ...
user avatar