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.

4
votes
1answer
113 views

InDesign script that generates percentages as page numbers

Does anybody know of a script that could calculate percentages within an InDesign document? To clarify - I want to use this essentially as a page number: page 5 of 10 would be 50%, for example. If no ...
1
vote
3answers
69 views

How to renumber static numbers in InDesign CS6

I have a series of static numbers in my InDesign CS6 document (e.g. 256, 257, 258, 259...). All numbers have a given character style (i.e. Footnote). I would like to find the numbers and renumber ...
1
vote
2answers
71 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
60 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
31 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
48 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
32 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
42 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
69 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
71 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
111 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
25 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
27 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
334 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
73 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
474 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
290 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
145 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
169 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
331 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
1answer
49 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
462 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
225 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
374 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
2k 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
106 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
250 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
348 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 ...
2
votes
0answers
691 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
99 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
116 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
903 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
549 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
64 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
649 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
429 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
342 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
729 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
192 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
1k 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
277 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
1k 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... ...
2
votes
0answers
35 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
132 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
1k 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
515 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
523 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
374 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 ...