Questions tagged [indesign-scripting]

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

39 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
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
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
223 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
2 votes
0 answers
70 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 ...
Sadret Nejati's user avatar
2 votes
0 answers
941 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 ...
Sillius Soddus's user avatar
2 votes
0 answers
202 views

Does someone know of a script to automatically put specific texts as footnote text?

A little while ago I made this post. Because of that I can automate placing footnote references where they are needed. Now the problem is that the actual footnote texts are just placed randomly in the ...
Sillius Soddus's user avatar
2 votes
0 answers
2k views

Script to resize InDesign page to fit content

I'm wanting to use ExtendScript javascript to loop through each page of an Adobe InDesign document and change the size of the page to match the visible bounds of all the objects on that page. I'll ...
nollaf126's user avatar
2 votes
0 answers
54 views

InDesign: Can tags add behavior to xml?

I have an xml file and a template. For some reason when I import the xml it ads a blank element between the title and subhead. The element doesn't exist in the xml file, but before I import it there ...
horribly_n00bie's user avatar
1 vote
0 answers
102 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
1 vote
1 answer
255 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
1 vote
0 answers
57 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 vote
1 answer
312 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
1 vote
0 answers
284 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
0 answers
178 views

Create automatic low & high res pdf, png with inDesign for multiple user

I am working on a platform, which should create from an inDesign file a low and high-res pdf, a png and maybe a new indesign file with the new data. These steps are in my mind. User logins or create ...
TobiasHH's user avatar
0 votes
0 answers
57 views

How to modify specific frames in InDesign using JavaScript?

I have a parent page that contains 4 text frames. The first and last contain the book name and page number, respectively. I want to keep these as they are. The two text frames in the middle of each ...
LeXa's user avatar
  • 1
0 votes
0 answers
38 views

Indesign script that applies 'Multiply' transparency effect to PDF placed on a layer to multiple pages

I have a 220pp Indesign document with a Cyan,Magenta and Yellow PDF placed on each page. I have another layer with a Black PDF on each page. I need to apply a Transparency Effect of 'Multiply' to all ...
John's user avatar
  • 1
0 votes
0 answers
67 views

Indesign script to automate order list by last name

Every month I have to order a long list of names alphabetically by last name. Is there a way to do this all in one single script? This is what I am currently doing: Use a GREP to place the last names ...
bryan yod's user avatar
0 votes
2 answers
77 views

How to link variable font axes to characters position?

I need to build an algorithm that will automatically interpolate a variable font in the layout based on the positions of the characters in space. It doesn't matter in which software it will be ...
Licci Beam's user avatar
0 votes
0 answers
160 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
345 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
1 answer
142 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
41 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
141 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
0 answers
124 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
102 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
121 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
521 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
0 answers
351 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
254 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
0 answers
205 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
0 answers
1k 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
0 votes
1 answer
309 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 ...
utzZ's user avatar
  • 1
0 votes
1 answer
185 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} {...
LazarusBlack's user avatar
0 votes
0 answers
54 views

How to determine the latest export options chosen?

Is there any way to determine which file type and export options where last chosen via Menu → Export? E.g. if the user exported as a PDF (print), I would like to obtain the chosen filename, ...
Tobias Kienzler's user avatar
0 votes
0 answers
379 views

Automatically Create Chapters with Master Pages and XML

I'm working on a catalog that contains several chapters and well over 100 pages. Luckily, I know that each chapter will be four pages long and use the same four Master Pages. In a perfect world, I ...
Jonathan Bowman's user avatar
0 votes
0 answers
416 views

How to show/hide specific objects based on variables in InDesign?

I'm creating a 80-page product catalog for a clothing company. Each page contains one clothing item. On each page, there is a table that contains four pieces of information about that clothing item: ...
Jan 'Saffi' Stekelgunsson's user avatar
0 votes
1 answer
186 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
-1 votes
3 answers
1k 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