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
3 votes
3 answers
4k 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.
Roozbeh E's user avatar
  • 384
0 votes
1 answer
1k 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 ...
Rifat's user avatar
  • 111
2 votes
2 answers
4k views

How to get fore-edge printing on indesign?

I need to get a book printed like this. How to get it in InDesign?
Udhaya's user avatar
  • 21
1 vote
1 answer
198 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... ...
Roozbeh E's user avatar
  • 384
2 votes
0 answers
54 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 ...
horribly_n00bie's user avatar
10 votes
0 answers
418 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 ...
os_1's user avatar
  • 201
1 vote
2 answers
3k 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 ...
nollaf126's user avatar
1 vote
4 answers
3k 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 ...
kduz's user avatar
  • 71
2 votes
2 answers
1k 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 '...
Benjamin Lake's user avatar
2 votes
1 answer
2k 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 ...
Mats Edvin Aarø's user avatar
1 vote
1 answer
1k 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 ...
Aardo's user avatar
  • 291
2 votes
1 answer
2k 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 ...
Leon's user avatar
  • 23
0 votes
1 answer
2k 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 ...
Samuel Foreman's user avatar
2 votes
1 answer
1k 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 ...
Ad Astm's user avatar
  • 155
0 votes
2 answers
234 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....
GernotStackoverflow123's user avatar
0 votes
1 answer
264 views

Indesign API built-in events paragraph-style

Does Indesign trigger any events when a paragraph style object does change? Or is there any built in javascript functionality that can observe an object? Object.obserce and Proxy are not working in ...
GernotStack's user avatar
0 votes
2 answers
226 views

Merge content of files line by line (intersperse lines)

I am using Windows 10 and InDesign CS6. I would like to take 2 files, mix the content line by line and output to a third file to make an ebook, as follows. INPUT FILE 1 (e.g. TXT, XML, SQL, etc.) [...
Ad Astm's user avatar
  • 155
1 vote
1 answer
2k views

Finding all TexFrame and TextPath objects in an InDesign document via scripting

I'm looking for a fast way to extract all the TextFrame and TextPath objects in a document via scripting. I have a working implementation that works also for inline elements but it's really slow ...
paul.ago's user avatar
  • 225
1 vote
1 answer
429 views

Custom data inside IDML files

I’m looking for a way to inject custom data inside IDML files via scripting, but I’m not sure that it’s possible. The IDML specification states “IDML supports the inclusion of new scripting objects ...
paul.ago's user avatar
  • 225
5 votes
3 answers
2k 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 ...
Rachelle Ann Facistol Mata's user avatar
1 vote
1 answer
1k views

What is a Type 1 font in InDesign?

Diving down the rabbit hole of scripting InDesign to learn more about what fonts are in a file I ran across several font types but I'm unsure what it means in InDesign when you have a Type 1 font type....
user9447's user avatar
  • 18.3k
3 votes
1 answer
2k views

In InDesign how can you script to detect a locked object?

I have an InDesign brochure that I'm trying to script against however I'm running into issues. When I try to script against the 100 page brochure I get an: Error Number: 11274; Error String: ...
user9447's user avatar
  • 18.3k
1 vote
2 answers
3k views

InDesign: script to "paste in place" selected objects to all unlocked layers

I am trying to build a script to "paste in place" all selected objects to all unlocked layers. My attempt is probably nearly there, but something's not working. var myDoc = app.activeDocument; var ...
Lucian's user avatar
  • 29.3k
0 votes
1 answer
150 views

Link InDesign documents so that all are updated when one is changed

Im working on a 300 page catalog with tons of "items" on each page. The information in the catalog is also put on a separate InDesign document for a "spec sheet" and sometimes, price sheets or flyers ...
Amy Ch's user avatar
  • 1
2 votes
2 answers
1k views

Importing learning cards in Indesign from EXCEL or XML or JSON file while keeping some basic formatting

In an EXCEL or XML/JSON file I have stored the contents of learning cards: one column for front side of the card, one column for the back side of the card. I want the cards to be layouted in Adobe ...
Madamadam's user avatar
  • 123
4 votes
0 answers
1k views

inDesign: Place textframes relative to other textframes, with automatic repositioning on resize

I use javascript to create an inDesign file containing multiple textframes. During script runtime, the textframes are easily positioned at the right place. The problem arises, when I change the text ...
David's user avatar
  • 41
2 votes
3 answers
350 views

Convert paragraphs to specific style based on content?

I really like plain text writers, such as Ulysses and the recently found Bear (both Mac). I'm currently writing my thesis and I enjoy styling. However, something that really annoys me is the gap ...
Sander Schaeffer's user avatar
4 votes
2 answers
912 views

Save to IDML script not working in CC2017

I'm relatively new at using scripts & the ExtendScript toolkit - and I'm working in an office environment where I'm using Adobe CC2017 and coworkers are using CS5. In order for my InDesign files ...
Joshjurg's user avatar
  • 553
1 vote
1 answer
1k 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 ?
megan's user avatar
  • 11
0 votes
1 answer
1k views

Automatically apply table cell style based on whether the cell is empty or has content

I have a document that is frequently modified with a lot of tables. There are two table cell styles used in the document. One is used when a cell is empty; the other is used when it is not empty. ...
Scribblemacher's user avatar
1 vote
2 answers
291 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. ...
Ben Potter's user avatar
1 vote
2 answers
222 views

InDesign: alternate version of catalogue with prices removed

I have prepared a catalogue with prices enclosed within a number of tables. For printing I need to prepare a PDF without these prices. Is there a way to quickly resolve this by hiding the prices, or ...
SZCZERZO KŁY's user avatar
0 votes
2 answers
3k views

How do I position an InDesign object using Javascript?

I'm working on a calendar in InDesign and I have a circle object (oval) that I want to position over the day of the month: I'm pretty sure it should be possible to write a script that sets the x,y ...
Michael's user avatar
0 votes
1 answer
864 views

Indesign catalog with categories with content from spreadsheet

TL;DR: Does anyone know how to show on InDesign file one table field that represents "Category" and under that all other table entries that have that same "category"? Details: I have to create ...
Daniel's user avatar
  • 1
2 votes
1 answer
2k views

What is the difference between .jsx and .js?

I am new to Adobe Scripting - what is the difference between .jsx and .js?
Brian's user avatar
  • 231
0 votes
0 answers
54 views

How to determine the latest export options chosen?

Is there any way to determine which file type and export options where last chosen via Menu → Export? E.g. if the user exported as a PDF (print), I would like to obtain the chosen filename, ...
Tobias Kienzler's user avatar
2 votes
1 answer
1k views

How to convert all raw-embedded images to placed files?

A slightly related question deals with exporting all placed files into a single folder. My problem is unfortunately deeper: The original author directly pasted screenshots into the InDesign document, ...
Tobias Kienzler's user avatar
0 votes
1 answer
289 views

Mute button for InDesign EPUB music

I'm creating a fixed design EPUB for a client. They would like background music to be present whilst the book is open. I've added an MP3 to the master page within InDesign, but the controls are ...
Sam's user avatar
  • 193
0 votes
1 answer
725 views

Batch copy/paste of rectangular images in square images?

I have got more than 1000 rectangular images (640x400) with a transparent background that I want to resize (to 600x375) and then copy/paste (centered) in a 600x600 transparent image. In other words, ...
toto_tata's user avatar
  • 101
1 vote
1 answer
5k views

How do I export an InDesign document to separate files with a different layer turned on in each?

I have a one-page InDesign document with 50+ layers. Each layer contains a single logo file, and I need to export the document to a PDF with one layer turned on per page. Ideally, I'd like to export ...
lcicozi's user avatar
  • 71
0 votes
1 answer
297 views

Overriding linked textframes from a master page

I'm trying to take a master which have several linked textframes on them, then add text to the first textframe and want it to roll over into the next text frame. To do this, I'm creating a new page, ...
user3791372's user avatar
8 votes
3 answers
4k 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 ...
Arthur's user avatar
  • 233
2 votes
1 answer
1k views

How to refresh all TOCs via a script?

I would like a script to update all tables of content in my document. I tried var t = app.activeDocument.tocStyles; for (var i=0; i<t.length; i++) { app.activeDocument.createTOC(t[i],true); ...
Tobias Kienzler's user avatar
2 votes
1 answer
3k views

InDesign script to list hyperlinks in active document

I am trying to get a list of hyperlinks from my document printed in the console or output to text file. This is what i'm playing with: for (k=0; k<app.activeDocument.hyperlinks.length-1; k++) { ...
Lucian's user avatar
  • 29.3k
1 vote
1 answer
6k views

Script for applying character style on text after inserting it from variable

I need a script for InDesign which do the following: insert text string from variable and format it with existing character style. The previous to last string does not working in my attempt: var ...
Dmitry Papkovich's user avatar
0 votes
1 answer
1k views

Select all text across multiple stories

I need to change all text in all the stories in an indd file from "Adobe Paragraph Composer" to "Adobe World-ready Paragraph Composer". Can it be done through UI or I have to use scripts. In the ...
coldbreeze16's user avatar
2 votes
2 answers
1k views

InDesign GREP everything between two consecutive returns and a digit(or)return

Say I have some text in the following format: What I am trying to style, using GREP, is the beginning of every new paragraph (that comes after an empty line), until a digit or return is reached, so ...
verism's user avatar
  • 73
1 vote
1 answer
5k views

InDesign: how to run multiple find/change queries at once

The pesky ~c in the grep find change is extremely helpful but limited. I want to script multiple find change actions that replace the text found with complex formatted text blocks containing text, ...
Joshua Steves's user avatar
0 votes
1 answer
2k views

InDesign row height script?

InDesign has ignored my row heights when importing an Excel sheet. Every first and second row height was default (20), every third row height was 10. Does anyone know if I can accomplish these ...
MinneapolisCoder9's user avatar
0 votes
1 answer
2k views

Convert smart (curly) quotes to dumb (straight) quotes in InDesign using JavaScript

I am trying to write a script to automatically convert all curly double quotes (“”) in a text box into straight double quotes ("). Here's all that I've tried so far and none of them seem to be working:...
TheLearner's user avatar