Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [indesign-scripting]

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

1
vote
2answers
48 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
2answers
54 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 ...
0
votes
1answer
26 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
1answer
35 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....
0
votes
1answer
20 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} {...
0
votes
2answers
35 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 ...
2
votes
0answers
33 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 ...
0
votes
1answer
68 views

How can I automate correcting broken up words?

I have copy-pasted a large text into InDesign. The problem is that a lot of words got broken up, so for example a text might look like this: As descri bed below, we collect i nformation from and ...
2
votes
0answers
82 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 ...
0
votes
0answers
23 views

Get all tracked changes made in tables

I'm trying to select changes in my stories doing this: var allChanges =myDoc.stories.everyItem().changes.everyItem().getElements(); var nChanges = allChanges.length; $.writeln("There are "+nChanges+" ...
0
votes
1answer
25 views

How do I automate placing footnote references in specific places?

I'm working on a book and I have to format a lot of .pdf text in InDesign as part of the book. A lot of formatting problems can be fixed using GREP. However, I don't think it's possible to use GREP to ...
0
votes
1answer
224 views

In script, get paragraph preceding current selection

I've made a script that goes trough all tracked changes: var allChanges =app.activeDocument.stories.everyItem().changes.everyItem().getElements(); var nChanges = allChanges.length; for (var i = ...
1
vote
1answer
63 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 ...
2
votes
1answer
386 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 ...
0
votes
1answer
210 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 ...
2
votes
2answers
115 views

How could I use a slug in InDesign as a digital client sign off?

I'm hoping to find a solution for a digital client sign off on artwork by using the digital signature feature in Acrobat but I'm hoping to be able to have this automatically set up in InDesign so I ...
2
votes
3answers
134 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 ...
1
vote
3answers
250 views

In InDesign, How to apply an Object Style to the frames those has same specific link image?

Is it possible to force indesign search for frames by their links and apply a specified object style to them? Any Script will appreciated!
0
votes
0answers
150 views

Dynamic text in InDesign on master page?

I try to make a calendar for 2019 with Indesign. 365 pages, each contains a different quote. What I did the last year was placing a text box on each page and paste the quote into that. That works, of ...
0
votes
0answers
151 views

How to change this TOC hyperlinking script so that the entire paragraph, not just the page number, functions as a hyperlink?

I'm attempting to adapt a script (below) for creating a List of Tables in which each entry functions as a hyperlink within the pdf that, when clicked, takes you to the respective table's page. The ...
0
votes
0answers
55 views

Indesign: Is there a way to have a layout dynamically respond to the number of blank data merge fields?

To be more clear, I am working on creating a template for financial plans we are preparing for clients. We are hoping to use a more infographic style for a few of the pages which shows how an amount ...
0
votes
1answer
46 views

Search for a specific value of an object in InDesign

I need to look up all images within several pages of my InDesign CC2018 document which containers have a negative (-100%) value of the y-scale AND a specific negative value (-40%) of the image itself. ...
1
vote
1answer
392 views

Indesign - importing images via xml

I have imported several tags to import an image using the following code: <link href="C:\Users\39875\Pictures\Screenpresso\test.png"></link> However the created the image is quite large. ...
0
votes
1answer
186 views

indesign script - output textframe onto active document

In my indesign document i have around 250 pages, each of which contain 1 table (1 per page). What i am trying to do is: Get the value of the top row of each table Retrieve the first letter of the ...
3
votes
1answer
320 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>=...
5
votes
1answer
1k 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 ...
1
vote
1answer
80 views

Indesign Script - output xml content as textframes [closed]

Is there a way of looping through xml tags and output each tag onto a new page of an indesign document Here is what i have so far but i think i am way off: var myDocument = app.activeDocument; var ...
0
votes
1answer
227 views

Script to apply two cell style in single row [closed]

I frequently work on financial document more than 100 tables, I come across tables where there are four cell styles Thick rule Left aligned (For first cell in a random row) Thick rule right aligned ...
0
votes
2answers
307 views

InDesign Script to create URLs

Is there a script to use within InDesign so it finds a URL within textframes and it turns it into a hyperlink? As I am aware, to create a hyperlink within InDesign requires you to right click and ...
1
vote
0answers
621 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 ...
4
votes
1answer
91 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 (...
0
votes
1answer
108 views

Why is the Indesign Scripts panel suddenly not sorted alphabetically? [closed]

The Scripts panel in Indesign is sorted alphabetically by filename. Suddenly, the scripts seem to be ordered randomly in the panel. This gets quite unefficient when trying to quickly find correct ...
1
vote
1answer
713 views

InDesign: How break a story from a text frame in two part? Any Scripts?

Is there a way to break a story by selecting a text frame and split it in two? There is two scripts which they called and do as: BreakFrame (shipped by application and is in the sample): This scripts ...
0
votes
1answer
484 views

Indesign: how to export multiple PDFs using different presets at once

I've got a series of documents that I need to export to 4 different PDFs. (High-res print ready, high-res no bleed, low-res online, and one last high-res with a different name). Is there a script out ...
0
votes
1answer
56 views

Indesign: Is it possible to Replace frames those content a specific link with clipboard content?

I have a lot of frames (as icons) linked to one image (link). But now I want a glyph instead them. Is it possible to replace them with a glyph that I copied to clipboard? Any script? Even is it ...
0
votes
1answer
550 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 ( ...
0
votes
1answer
399 views

GREP Style to remove tabs & replace with paragraph break

I am wondering if it is possible to create a GREP Style (not search) to auto-format a consistent data set of info. Data example as follows: XXX1X234-101 "UPAS" WOVEN SPTWR JKT OFF WHITE XXX1X234-...
3
votes
1answer
330 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 ...
2
votes
2answers
629 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 ...
3
votes
1answer
184 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 '...
1
vote
2answers
923 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.
0
votes
1answer
214 views

How to assign and execute a custom JavaScript function to a button on InDesgin?

I am new in scripting. I have checked other answers and a few tutorials but I failed to find a way to assign custom function to a button on InDesign. I built a PDF and added a button. I want to ...
2
votes
2answers
879 views

How to get fore-edge printing on indesign?

I need to get print like this. How to get it in indesign?
1
vote
1answer
56 views

Is there any section managing tool/ panel for indesign?

In Indesign going through sections in multi documents or long documents to editing their titles and other options is a time eating process. Is there a panel, script or plug-in to just list sections... ...
1
vote
0answers
33 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 ...
10
votes
0answers
120 views

Add git log as table to InDesign Document

I use Indesign CC as 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 ...
1
vote
2answers
2k views

How to prevent hyphenation in InDesign?

In my InDesign application settings I have hyphenation turned off for new documents as my default setting. When I copy one or more text boxes from a source document to a target document with ...
1
vote
2answers
913 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 ...
2
votes
2answers
450 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 '...
2
votes
1answer
437 views

Automatically merge individual .indd files

First some background info: I work for a medium sized publisher, which works with licenses from external companies. We receive english InDesign files, and translate them into our native language. We ...