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
2 answers
79 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 ...
1 vote
1 answer
56 views

InDesign Scripting: Adding a paragraph after every paragraphs of a particular style

I'm trying to automatically insert a new paragraph below every paragraph that has a particular style. This is working well, but there is the side effect of changing the style of the paragraph ...
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 ...
1 vote
2 answers
57 views

Indesign Scripting: In a loop, find consecutive paragraphs with the same paragraph style

What I'm trying to do Find all instances of paragraphs with a certain paragraph style. Cut the paragraphs and create a text frame where each group of paragraphs was. Apply an object style to the new ...
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 ...
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 ...
0 votes
1 answer
108 views

Indesign: printing on bleeds to reveal a text or image

I was wondering if there were any ressource online or script for realizing this type of printing (Hyperreality and Panorama) on a book's bleed using Indesign. Reference I think this would require a ...
2 votes
2 answers
4k views

How to get fore-edge printing on indesign?

I need to get a book printed like this. How to get it in InDesign?
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 ...
1 vote
3 answers
110 views

Make indent for more than first line in paragraph styles in InDesign?

I wonder if anyone has any idea how to make indents for more than the first line in a paragraph? I obviously understand that I can work manually to make this happen but want to set a paragraph style ...
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} {...
2 votes
1 answer
224 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 ...
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 ...
1 vote
3 answers
412 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 ...
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 ...
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 ...
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 ...
0 votes
1 answer
113 views

Save pdf with overprint simulated

Is there anyway I can generate a version of a pdf which shows on screen, simulated overprint. I essentially want to send my client there artwork back showing the overprint simulated. I don’t want them ...
0 votes
0 answers
69 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 ...
1 vote
4 answers
3k views

InDesign: Using GREP to style URLs, email addresses, phone numbers, social handles, and hashtags

I'm brand new to GREP and its uses in InDesign, and while I'd like to understand it in a more robust way someday, at the moment I'm struggling to find some resources that can explain just the basics ...
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 ...
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 ...
0 votes
3 answers
4k 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 ...
0 votes
1 answer
115 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 –...
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 ...
0 votes
2 answers
5k views

Indesign script to automate GREP Find/Replace

This question follows on from my previous question on the subject of GREP and find/replace functionality of InDesign. To summarize the situation, my InDesign document has 3 character styles applied to ...
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 ...
1 vote
1 answer
356 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 ...
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 (مصدر الخبر) ...
1 vote
1 answer
3k views

InDesign script to replace all fonts in a document

I realize that this can be done with the find font dialogue box but I have too many files that require this text update to make that method practical. I've tried tinkering around with GREP but I'm ...
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 ...
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.
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 ...
1 vote
1 answer
193 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") ...
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 ...
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, ...
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 ...
0 votes
1 answer
432 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 ...
0 votes
2 answers
1k 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
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 ...
-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, ...
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 ...
0 votes
1 answer
185 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 ...
1 vote
1 answer
1k views

How can I quickly turn all objects of a layer to independent layers in InDesign?

How can I quickly turn all objects of a layer (text boxes, shapes, lines, etc.) to independent layers in InDesign ?
0 votes
1 answer
355 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 ...
0 votes
1 answer
179 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 ...
1 vote
1 answer
551 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?
2 votes
1 answer
1k views

How to refresh all TOCs via a script?

I would like a script to update all tables of content in my document. I tried var t = app.activeDocument.tocStyles; for (var i=0; i<t.length; i++) { app.activeDocument.createTOC(t[i],true); ...
0 votes
1 answer
553 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 ...
0 votes
1 answer
2k 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 ...