Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
30 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
20 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
21 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
68 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
49 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
100 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
87 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
87 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
89 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 ...
0
votes
0answers
39 views

User specific term replacement in Adobe InDesign (Script)

I was wondering if there was a way, with a script for InDesign, for a user to run the script and enter their own word or words into a dialog box and it then input them into multiple text frames. I ...
1
vote
3answers
150 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
107 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
126 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
46 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
42 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
306 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
145 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
239 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
55 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
189 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
260 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
547 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
82 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
88 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
563 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
372 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
49 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
405 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
343 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
297 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
479 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
170 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
704 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
167 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
743 views

How to get fore-edge printing on indesign?

I need to get print like this. How to get it in indesign?
0
votes
0answers
198 views

How to add dates on each page for a journal?

I’m trying to create a journal for 2018 with each day’s date on each page. I’ve searched the internet and the closest thing I got to was having this text file with all the dates: Monday, 01 January ...
1
vote
1answer
55 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
29 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 ...
8
votes
0answers
102 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
1k 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 ...
0
votes
0answers
171 views

Indesign. Trigger automatic .pdf-Export when change of linked Text-/Excel-File occurs.

I am searching for a solution for a client who needs .pdf's from an Indesign file. The use-case is that there are daily changes in a Price-List that we have created in InDesign. The Data-set itself ...
1
vote
2answers
782 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
361 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
341 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 ...
1
vote
1answer
290 views

InDesign: how to solve this numbering issue?

I'm putting together a brochure. I want to speed up my workflow. I have something resembling a table of contents, but made manually, meaning, I have a list of galleries each assigned an arbitrary ...
1
vote
1answer
494 views

Indesign: exporting multiple certificates, each with a different name, into separate files

I'm looking for efficient way of importing the 1000+ individual names into an InDesign document then exporting out as an individual PDFs (a 1000 page pdf wont work). One name per page. I have created ...
0
votes
1answer
328 views

InDesign GREP style Bold before tab

I have this GREP style that bolds text before a colon but I would like to do this without a colon. I have done this as a paragraph style to apply bold to list of abbreviations. ^[^:]+ When I have ...
3
votes
1answer
404 views

Find unwanted paragraph marks (GREP, find, replace, script)

I have an InDesign CS6 document with a lot of numbered paragraphs. They begin with a number and end with a paragraph mark. However, there are some paragraphs which have unwanted paragraph marks in the ...
0
votes
2answers
55 views

SpecialCharacters.PAGE_BREAK compare against TextFrame.contents

var myStories = app.activeDocument.stories.everyItem().getElements(); for (i = myStories.length - 1; i >= 0; i--){ var myTextFrames = myStories[i].textContainers; $.writeln(myTextFrames....