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
3
votes
2 answers

InDesign Server CS5.5 "ReferenceError: User canceled this action/" on XML import

Recently when on mew InDesign documents when we try to import and xml file into the document I am getting this ReferenceError: User canceled this action. Does anyone have nay insight as to what this error actually is? XML is valid, Document checks…
pandabrand
  • 397
  • 1
  • 13
3
votes
1 answer

IDML : What are Kinsoku/Mojikumi tables?

I am new to the world of Adobe InDesign and IDML file format. I am trying to understand the IDML file format so that I can create IDML files dynamically through code! I am going through the IDML File format specification and have found references to…
divyanshm
  • 6,600
  • 7
  • 43
  • 72
3
votes
1 answer

Connecting to an Adobe InDesign console

I have a single instance of InDesign Server running on a Windows 2007 VPS, which runs a SOAP service on port 8081. This runs as a Windows Service and runs both dev and live JSX scripts, depending on the path of the script (we have a dev folder and a…
halfer
  • 19,824
  • 17
  • 99
  • 186
3
votes
4 answers

Making a button in indesign go to a specific page in exported PDF

In InDesign I can define buttons and can add different actions to them. One of these actions is "go to page", but apparently that function is only usable when exporting the InDesign document as an SWF. However, we want to export an interactive…
Sorcy
  • 2,587
  • 5
  • 26
  • 34
3
votes
1 answer

inDesign scripting "Object is invalid"

I'm trying to set height & insets for the first row of a table one way, and then all following rows to another set of values. I'm receiving a JavaScript error message when I run it: Error Number:45 Error String: Object is invalid Engine: main File:…
Chuck
  • 375
  • 5
  • 22
3
votes
1 answer

Parsing HTML text for Adobe InDesign--tags inside other tags

In InDesign, I'm pulling text out of an xml file and placing it in a textFrame. Since the textFrame doesn't support some tags, I have to replace bold, italic and boldItalic tags in the textFrame with formatting applied programatically. I was…
j2112
  • 31
  • 3
3
votes
1 answer

How to close hidden InDesign documents?

While scripting InDesign, I've had plenty of instances where I create a new document that's hidden until I execute all of the actions, and then I use myDocument.windows.add(); to get it to show. However, I've also had plenty of instances where I get…
Brendan
  • 868
  • 1
  • 16
  • 38
3
votes
1 answer

Get two XML data elements to appear on the same line

I am importing XML into Adobe InDesign. Using the following XSLT I am trying to massage the XML to create the desired data flow. My XSLT is working almost perfectly thanks to help here on StackOverflow. I have just a couple of persistent problems…
Jim Maivald
  • 522
  • 6
  • 26
3
votes
4 answers

isPrototypeOf in indesign

Hi am relativly new to indesign scripting and would like to figure out if an object is a subtype of a class. Example: I want to iterate over all page items and take everything that is not a graphic: layer =…
ted
  • 4,791
  • 5
  • 38
  • 84
3
votes
1 answer

How can I programmatically clear text selection in InDesign with ExtendScript?

I've programmatically selected some text in InDesign using ExtendScript: app.findGrepPreferences = NothingEnum.nothing; app.findGrepPreferences.appliedFont = myFont; var matches = app.activeDocument.findGrep(); if(matches.length > 0) { …
Shawn
  • 10,931
  • 18
  • 81
  • 126
3
votes
1 answer

Can I assign multiple values to the appliedCharacterStyle property of InDesign DOM's Text object?

I am working on an ExtendScript script which we use to prepare InDesign files for export to XHTML. Basically, we just go around applying character styles where we need them (have a look at this simplified…
Shawn
  • 10,931
  • 18
  • 81
  • 126
3
votes
1 answer

Loop through all threadded text frames in JavaScript InDesign script?

I'm trying to create an InDesign script that functions exactly like SplitStory.jsx, only that it won't require first selecting a threaded text frame but instead loops through everything that is threaded/linked within the whole document. Here is what…
Arktype
  • 95
  • 1
  • 6
2
votes
1 answer

Regex defined outside of for loop not working

Long time user, first time asker; very new to regular expressions. I'm a designer trying to make my life in InDesign easier, so please be patient if this is an easy one :) I'm working on a script that pulls pages out of a master file into a template…
Brendan
  • 868
  • 1
  • 16
  • 38
2
votes
2 answers

Indesign JavaScript Creating Text & intra-doc Hyperlinks in Book - Extremely Slow

First time posting First time writing in JavaScript, though I have experience in other languages. I'm working in Adobe InDesign CS5.5. I have multiple files in an ID Book, each containing a varying number of "chapters". The book includes an index…
2
votes
1 answer

InDesign Server (5.5), pdf preset do not seem to work

I'm a bloody beginner with InDesign Server and stumbled upon a problem applying PDF presets to my document as described here in chapter 3.3 (page #56): OptPDFExportPreset optPreset = OptArg.noPDFExportPreset(); PDFExportPreset preset = …
Robert Heine
  • 1,820
  • 4
  • 29
  • 61