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
0 votes
1 answer
51 views

Help w/ script: Find two Paragraph Styles, change the second one

I'm trying to get an InDesign script that works like this: "In the currently selected text, whenever a Paragraph Style B appears after a Paragraph Style A, change that Paragraph Style B to ...
Igor's user avatar
  • 1
0 votes
1 answer
48 views

Indesign: Keep multiple paragraphs (of different styles) sets together

Is it possible with a script or GREP styles to keep together multiple sets of paragraphs which can contain 5-6 different paragraph styles though the start and end paragraph styles are always the same –...
Ross's user avatar
  • 3
0 votes
0 answers
54 views

How to search in paragraph style in indesign by script

i'm bad in JS, i asked one of my friend to help me in that, also, if you can give me your hand here this will be good too. I have this code, which it's make search for the paragraph by give it the ...
Amr Hamdy's user avatar
0 votes
1 answer
77 views

Trying to script a Indesign dialog to handle user input

I've been picking away at this script, the idea is to have a dialog that steps through the layers in the document and has the user pick from a dropdown to set a text box on the slug. The issue I'm ...
user2129933's user avatar
0 votes
0 answers
52 views

Script to save main InDesign book document INDB as an IDML

We are looking for a JSX script that can save a copy of the INDB as an IDML after save. The .indb is the main book document in Adobe InDesign CS5/6. The code would be roughly similar to the one below ...
granite's user avatar
  • 101
0 votes
0 answers
35 views

InDesign - Replace text field from file

I'm trying to make a document where on each page there is some text (e.g. name) that is updated based on a text file that contains the list of the desired text for each page. (Imagine a document with ...
Razero's user avatar
  • 101
0 votes
0 answers
98 views

GREP to select footnote text and make it inline note

Now I am finished with my magazine for sighted people and want to get it ready to Braille for the blind. In the process, I need to change the footnotes to inline notes. Is there a way to use GREP to ...
I Like Bacon's user avatar
0 votes
1 answer
93 views

Automatically move title text to next page/column if it originally appears on the last line of page/column

Is it possible to have InDesign automatically move a title (with associated paragraph style) to the next page/column if it would otherwise appear on the last line of a page/column? Many of my titles ...
Travis Grant's user avatar
0 votes
0 answers
40 views

Previous Page Number Script Indesign

Searched the whole www to find a script that could put an end to the issues connected to adobe's terrible naming of "previous page number" marker. For a book I'm designing, I'd really love ...
bodiless editions's user avatar
0 votes
0 answers
69 views

I have problem with this InDesign script

I have Indesign document with 366 qrcdoe and news source I find this script and edit it to GROUP any qrcode with specific object style (qrcode) and any text with specific paragraph style (مصدر الخبر) ...
Hassan's user avatar
  • 1
0 votes
0 answers
32 views

Move Auto Page Numbering from left to different corner of the page using Indesign script

I am trying to move Master Spread auto page numbering to right corner of the page using Indesign Extendscript. Unable to achieve it yet. Is there a way we can select the text frame of content type &...
venkatesh mp's user avatar
0 votes
0 answers
46 views

How to insert additional endnotes in-between pre-existing ones

I ran into a problem in which I was given a Google Doc (which I converted into a Word document and placed it into the report) and it ended up not being the final version. After creating the report in ...
Brandon's user avatar
2 votes
1 answer
155 views

VSCode ExtendScript not doing anything V2 (indesign)

I haven't used ExtendScript for a while. Now I got a new laptop and just updated to the latest indesign-version CC2023. I wanted to debug an indesign-script so I had to set ExtendScript up again. I ...
SabineR's user avatar
  • 423
1 vote
0 answers
92 views

InDesign: Reposition Data Merge elements based on Data

This is a long shot, but I'm at a new job, learning InDesign, and wondering if I can automate something in a set of reports I'll regularly be generating. The organization I work for partners with ...
IDn00b's user avatar
  • 11
0 votes
0 answers
71 views

Is there a way to get the average color of a photo or get the color at certain coordinates in a photo in InDesign using ExtendScript

I have an InDesign script which places a photo in a document and then puts some text over it. The photo can be either dark or light, so the text should be either black or white. For this to work I ...
Sergey Slyusarev's user avatar
0 votes
0 answers
100 views

FindChangeByList does not work - UserInteractionLevel is undefined

When I try to run the FindChangeByList script (I quote the whole script below) from the InDesign script panel, there appears to be no result. When I run the script from Adobe Extend Script Toolkit CC, ...
Yosef Stanton's user avatar
0 votes
0 answers
337 views

Is there a way to create relative links to an InDesign template file?

Just like the title says, I'm trying to create relative paths to an Illustrator file and Excel file in my template file. I'm using data merge to create a bunch of files from the template and when I ...
Steven Tolle's user avatar
0 votes
1 answer
353 views

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

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 ...
user174211's user avatar
0 votes
2 answers
736 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
Julienisnard74's user avatar
0 votes
0 answers
289 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 ...
Mirza abdul rahman's user avatar
0 votes
0 answers
177 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 ...
Roozbeh E's user avatar
  • 384
0 votes
1 answer
124 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 ...
friendly_llama's user avatar
0 votes
1 answer
252 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 ...
Jakov Smith's user avatar
0 votes
1 answer
134 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 ...
Jakov Smith's user avatar
1 vote
1 answer
415 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?
user3038785's user avatar
0 votes
1 answer
703 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 ...
daniel's user avatar
  • 179
0 votes
0 answers
188 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 ) { //------------------------------------------------------------------------- //-- ...
john c. j.'s user avatar
0 votes
1 answer
423 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 &...
Amorim's user avatar
  • 1
-1 votes
3 answers
917 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, ...
Kerinno's user avatar
3 votes
1 answer
324 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
0 votes
0 answers
885 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 ...
ZANI.dev's user avatar
3 votes
1 answer
759 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
  • 207k
1 vote
1 answer
224 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 ...
aoifegib's user avatar
3 votes
1 answer
893 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
1 vote
0 answers
52 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 ...
SabineR's user avatar
  • 423
-1 votes
2 answers
770 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.
Mikołaj Kosiński's user avatar
6 votes
1 answer
315 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
2 votes
1 answer
188 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 ...
Circle B's user avatar
  • 3,238
1 vote
1 answer
245 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 ...
Giovanna's user avatar
0 votes
1 answer
734 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 ...
Dorvalla's user avatar
  • 101
1 vote
2 answers
545 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 ...
Duncan's user avatar
  • 13
0 votes
2 answers
279 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 ...
One Face's user avatar
  • 171
2 votes
2 answers
800 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
234 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 ...
Daniel James Smith's user avatar
1 vote
2 answers
752 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 ...
Sam's user avatar
  • 13
1 vote
2 answers
2k 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 ...
Yuqi Wang's user avatar
0 votes
2 answers
256 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)?
i. Madar's user avatar
1 vote
0 answers
252 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:- ...
Himanshu's user avatar
  • 159
1 vote
1 answer
170 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") ...
Ad Astm's user avatar
  • 155
0 votes
1 answer
469 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 ...
BStone's user avatar
  • 116