Questions tagged [adobe-indesign]

InDesign is Adobe's scriptable publishing software. When using this tag also tag the language that you are coding in for context, e.g. [extendscript], [applescript], or [vbscript], etc..

Adobe InDesign is a software application that can be used to create works such as posters, flyers, brochures, magazines, newspapers and books. It can publish content directly to tablet devices, in conjunction with Adobe Digital Publishing Suite.

1184 questions
0
votes
2 answers

Indesign | Delete a whole paragraph based on a s string

With Find/Replace or GREP I want to do the following: Delete the whole paragraph in which there is the string "XXX". It's not that hard I think to do but I seem to be unable to find the solution online. Thanks! It's for a Data Merge in InDesign…
Thomas Maier
  • 181
  • 1
  • 13
0
votes
2 answers

InDesign javascript: 'Object Invalid' when trying to remove() a pageItem?

I'm successfully getting a reference to a non-threaded text frame that I want to delete, but calling .remove() on it results in error 45 'Object is invalid' Seems like this code should work? But it doesn't :-( var workbooklegal =…
Ted Fitzpatrick
  • 910
  • 1
  • 8
  • 18
0
votes
0 answers

How to create a new object with parts of existing object that may have nested object

I need to mirror the structure of page items in an InDesign document in a javascript object. I need it to match the nesting of page items in groups, groups within groups, etc. This needs to be extensive to work with any InDesign document that is…
Bob N.
  • 43
  • 5
0
votes
1 answer

Newspaper generator to InDesign: IDML or InDesign Server?

I'm creating a library to generate newspaper in IDML/InDesign format. This library today already outputs the newspaper using PDFLib, which give to us all control (in points) about what is being plotted. In our IDML version engine, we have to deal…
Daniel Koch
  • 277
  • 6
  • 14
0
votes
1 answer

InDesign script to add a page to every given page

I have an InDesign with ~400 pages and need a rather simple script that adds a page to every existing page (so: p1+1; p2+1; p3+1 ...). Also, the added page should contain two text frames. I'm using InDesign CS6 and JS. I have some lines, but not the…
VHS
  • 71
  • 3
  • 13
0
votes
1 answer

Adobe In-Design in C# or in Java

How to make document of Adobe in-design without opening the application in c# or Java. I am able to create the document but for that, I have instantiated the UI of Adobe in-design Below is the code I tried which is working but for this application…
0
votes
0 answers

Copy or duplicate Page if TextFrame == "Test" exist

In my document which contains a lot of pages i need to Find specific name of text Frame, and if script will find it copy found pages into another document var textFrame = app.activeDocument.textFrames.everyItem().getElements(); function…
dizek
  • 3
  • 2
0
votes
1 answer

In InDesign, how to programmatically bring a specific word from the active document into view?

I’m writing a script that searches the active document for some word with specific properties, then highlights it. After performing the operation at the user’s command, I’d like to bring the affected word into view, so that the user doesn’t have to…
0
votes
2 answers

How can I get a string that finishes with one of two characters and replace that last character conditionally by regexp?

I'm looking for a regexp formula that finds strings starting with a dash and ending with a dash or a point, it order to manually evaluate cases where dashes must be replaced with em-dashes. For example, the below text: -hi there. -hello-. It's nice…
manuhank
  • 11
  • 3
0
votes
1 answer

Conditionally apply Paragraph Style to text in a Table

I have this code that works: var myTable = app.activeDocument.stories.everyItem().tables.everyItem().getElements(); for(i=0; i
dizek
  • 3
  • 2
0
votes
0 answers

XSLT to remove specific unicode contained within an unordered list

I have some XML that I'm importing into InDesign. The issue arises with multi-level bulleted lists, which do not format correctly in the document. The problem is easier to visualise in InDesign. The two screenshots show the same imported XML in…
0
votes
1 answer

needs to generate and update missing DocumentID and instanceID of the links of .indd Indesign files through extend script

I am using Mac with InDesign CC 219, and in my .indd file, some of the links are missing DocumentID and InstanceID, the below is the code I am using to get those details. If for any of the links, DocumentID and InstanceID are missing then I need to…
Madasu K
  • 1,813
  • 2
  • 38
  • 72
0
votes
1 answer

Indesign and Extendscript: Multiple functions, loops, and timing. Function called in a loop, not in sync

Key problem is that function in a loop is out of sync. I don't get the correct var myDimensions unless I include the alert() to slow down the process. I'm not sure if I need to use callbacks. I read about them and find them confusing and I want to…
Matthew
  • 1
  • 2
0
votes
3 answers

How to define a line break in extendscript for Adobe Indesign

I am using extendscript to build some invoices from downloaded plaintext emails (.txt) At points in the file there are lines of text that look like "Order Number: 123456" and then the line ends. I have a script made from parts I found on this site…
RadioMan
  • 3
  • 5
0
votes
0 answers

needs to manually update documentID and InstanceID of indesign uploaded file

I am using InDesignCC 2019, using zxp installer I have uploaded my zxp file for AEM extensions and uploaded my 264578_***-1F.indd file. In InDesignCC20019 under file/ fileInfo I can see the all the meta data info of it. But now my requirement is…
Madasu K
  • 1,813
  • 2
  • 38
  • 72