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
0answers
22 views

Indesign convert numbers in chart to page number hyperlinks

I am building a catalog in Indesign. This catalog has a specification chart that encompasses many pages. The last column in that chart includes page numbers so that viewers can reference back to that ...
0
votes
2answers
34 views

Adobe Indesign: How to measure the width of a word?

Is it possible to measure the width of a word in some way? (via Javascript code, or a built-in software option)?
1
vote
0answers
19 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:- ...
0
votes
1answer
35 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
0answers
37 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 ...
1
vote
1answer
31 views

How do I detect an empty text frame with hidden data frame markers?

I have been using the DeleteEmptyFrames.jsx script from the interwebz and it works in text frames containing nothing, but fails when the frame had a data merge field that contained no data when ...
0
votes
2answers
59 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 ...
-2
votes
1answer
35 views

How to change tables and cells styles all at once by using Java script?

How to change tables and cells styles all at once by using Java script? I want a dialogue box to enter stroke weight. Thank you
0
votes
1answer
195 views

InDesign script targeting specific text frames

I have an InDesign document with ~550 pages. On an every page, there are 4 frames. All the pages look the same (see image below). I'm using CS6. I'm new to scripting and a little lost here. I need ...
2
votes
0answers
41 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 ...
0
votes
0answers
25 views

Automating assignment of buttons path

I have document with multiple buttons that must open files. I found script thdt works by searching for button names in InDesign file and then assigning a URL that matches from a data table on the ...
1
vote
1answer
56 views

InDesign script to insert pages between existing ones

I try to create a very simple script that adds one page after every existing page of the document and applies one of the masters to it. Unfortunately I have a problem with referencing objects in ...
0
votes
0answers
65 views

Indesign script: Replace grep-found text with image

Disclaimer: I am new to Indesign scripting, please bear with me I am looking for a marker" in a text, enclosed in brackets. I use grep for this, as I don't know the length of my marker app....
4
votes
1answer
160 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
169 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
108 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
70 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
71 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
131 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
50 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
59 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
158 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
87 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
125 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
31 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
32 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
569 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
90 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
820 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
652 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
204 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
291 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
512 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
56 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
633 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
419 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
590 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
210 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
328 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 ...
1
vote
2answers
484 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
846 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
119 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
139 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
1k 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
717 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
79 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
909 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
533 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
369 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 ...