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
1
vote
3answers
1k views

In InDesign, How to apply an Object Style to the frames those have 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!
3
votes
3answers
2k 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 ...
0
votes
1answer
73 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 ...
0
votes
2answers
70 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
1answer
69 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
0answers
36 views

InDesign script to make auto-sized frames hold descenders: how to make it work?

I found the following promising script by Jon S. Winters, function holdDescenders ( aTextFrame_o , extraHeight_n ) { //------------------------------------------------------------------------- //-- ...
2
votes
1answer
175 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 ...
0
votes
1answer
81 views

inDesign Script to “when textbox created paste clipboard content in it”

I have no experience with scripting, but I can maybe explain what the intented script should do: Select text, cut it. Ctrl + X after mouseUp. Make textbox (manually). Drag with mouse, if possible &...
0
votes
0answers
29 views

Multiple document merge one book with clickable toc

I have multiple chapter 20 InDesign files. All files have separate master pages and numbering. I want to create one book with TOC clickable. How to do? Also, I want to publish an e-book with a fixed ...
0
votes
1answer
83 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
17 views

Script to insert character & apply character style in a threaded text frame

I need a script that will apply a space and the "@" character with a character style at the point of insertion in a text frame (or even at the end of a selected text frame - either will do). ...
0
votes
1answer
163 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 ...
0
votes
1answer
103 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} {...
1
vote
0answers
72 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 ...
0
votes
0answers
35 views

Frame From Objects: A script to select multiple objects and insert in (non-existing) frame?

First off, I want to mention I do not know how to script, I am just a big fan of automation so I am always on the hunt for a better workflow! Often times I need to clip a series of objects to a ...
0
votes
0answers
57 views

Indesign 'paste in place' doesn't work

It doesn't matter if it's an SVG, Jpeg, Text box or frame, every time I copy (cmmd + c) and paste in place (cmmd + shift + option + v) anything, InDesign paste's it in the centre of the spread. I've ...
1
vote
1answer
627 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 ...
10
votes
0answers
325 views

Add Git log as table to InDesign Document

I use InDesign CC as the 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 ...
3
votes
1answer
156 views

InDesign: Can I automate Master Page assignment to multiple, non-contiguous, pages without using page numbers?

I need to replace a couple existing master pages with other existing master pages. I am familiar with how to replace master pages in general. I have Master Pages - A, B, C, D, E, F. I need to replace ...
3
votes
1answer
204 views

How to select or copy all text in InDesign document

I want to select all text content of every page in an InDesign document or copying all text in InDesign document. I have tried scripting method, but did not work.
3
votes
2answers
2k 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
0answers
36 views

Bookmark pages with sections in InDesign

It's hard to navigate lots of pages to find the article Inside a large InDesign Document for edit or review, it's good to have a feature or script that can find pages they have Sections within them ...
1
vote
0answers
36 views

Indesign - FindChangeByList exclude character style (or hyperlinks)

I have a FindChangeByList search that replaces a divis between numbers with an en-dash with an 1/24 quad before and after. Unluckily it includes our Hyperlinks too and thus destroys them. Is there a ...
-1
votes
2answers
135 views

GREP for non-breaking space after initials

I'm laying out a bibliography in ID, and I need a way to insert a non-breaking space after initials, so A., B., etc. don't end up at the end of lines. Thanks in advance.
1
vote
2answers
889 views

import CSV content to InDesign document with script

I have a Daily Planner (400+ pages) created in InDesign. Each daily page has date. The 365 daily pages start from page 17 to 382 in my InDesign document. I figured it would be better to add weekday to ...
4
votes
3answers
1k views

Mass export all images as individual JPEGs in InDesign?

I am new to Indesign. I have a file that contains images with Photoshop clipping paths. I want to export all the clipped images in a folder. I have tried doing the "Copy Links To" and it successfully ...
1
vote
2answers
190 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 ...
6
votes
1answer
150 views

Adobe InDesign: Set text justify for every other line

I'm looking for a solution to achieve something like the image below. I want to set justify and hyphenation for paragraphs except odd lines.
2
votes
1answer
71 views

InDesign Data Automation for Books, not Catalogs

I have a use case where I’d like to use a bunch of small pieces of data from a database, in random places inside a large book. My book has hundreds of photos (with captions and credits) and over a ...
1
vote
1answer
196 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
1answer
279 views

Indesign: Frame on masterpage always on the front,

Background: Our PIM system allows us to create a generated catalogue for our clients. For this client we are placing images on top of each other to create the illusion of items being displayed with a ...
1
vote
2answers
181 views

InDesign Script new layer naming by page number

I've got an odd query where I need to take all the objects on a certain layer and put them each on a separate new layer so they can be exported as individual PDFs (and converted to png). I've found a ...
0
votes
2answers
97 views

How to change paragraph composer using script?

Is there a script command that can reassign the adobe paragraph composer to 'World paragraph composer'? The InDesign ExtendScript API(12.0) does not seem to have a command. I basically want to ...
2
votes
2answers
282 views

InDesign plug-in for random text variations in size and position

I'm trying to typeset a book with an "old" / "handmade" look, with little irregularities, shuffled up kerning and spacing, letters that are slightly unaligned, and so on. More or less like in this ...
8
votes
3answers
3k views

Script to always save IDML with INDD

Is there an existing script for InDesign that will save an INDD file and an IDML copy at the same time? I work with dozens of independent designers on collaborative projects, and those of us with ...
2
votes
1answer
2k 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 ...
-1
votes
1answer
108 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
1answer
71 views

Finding and replacing footnotes inside punctuation

Is there any way of finding and replacing footnotes inside punctuation with the same number footnote outside the punctuation? I don't mind doing separate find and replaces for all conceivable types of ...
1
vote
2answers
275 views

InDesign / Delete entire line if field is empty

I'm working on automating donations and was wondering if, when using Data Merge, it is possible on export to auto remove a line, if those fields don't have any data in them. Per example, After Data ...
0
votes
2answers
120 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)?
5
votes
1answer
1k views

Add column break and space to using paragraph using styles

I'm going to design a fairly large festival programme and wish to make use of XML to ease the process. But I need to be able to make column break after each entry, and also add spacing after certain ...
1
vote
0answers
68 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:- ...
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
817 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
0answers
81 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
2answers
2k views

Next Month Indesign Text Variable

Is there any way to create a text variable that has a date in the future calculated from today's date? What I need is: Todays date + 1 month. I know you can have text variables with the output or ...
1
vote
2answers
213 views

Batch Export a textbox in Indesign

I have to send out of InDesign 50 versions of the same ad, everything is the same in each of these 50 ads except for one small key number down the bottom in a textbox that changes for each instance. ...
0
votes
2answers
1k 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
101 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
2k 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 ...