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
18
votes
7 answers

Importing Html into Adobe Indesign

We are currently working on an pdf version of a newspaper at work, we have a .net website which captures the articles to publish, storing the content entered as html, so we can maintain styles like bold, underline, strike out. Once this is stored in…
Paritosh
  • 4,243
  • 7
  • 47
  • 80
18
votes
5 answers

Is it possible to call a web service with Indesign javascript?

I'm an in-house developer for a print company. We use Adobe Indesign CS3 and CS5 to create documents for printing. I created a script in Adobe Extendscript that creates an Indesign Document and handles some basic conversions when the client fails to…
story
  • 729
  • 2
  • 9
  • 22
15
votes
3 answers

Is there an equivalent of setTimeout in Adobe's ExtendScript

Javascript's setTimeout function is a method of the window object. This object doesn't exist in ExtendScript and is therefore not available to scripts made for Adobe InDesign or Illustrator. What can I use instead to acheive the same results?
Shawn
  • 10,931
  • 18
  • 81
  • 126
13
votes
11 answers

How to do mail merge on top of a PDF?

I often get a PDF from our designer (built in Adobe InDesign) which is supposed to be sent out to thousands of people. I've got the list with all the people, and it's easy doing a mail merge in OpenOffice.org. However, OpenOffice.org doesn't support…
Velmont
12
votes
3 answers

Web Google authentication with firebase

uncaught exception: Error: This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled. var config = { apiKey:…
12
votes
2 answers

Importing XML into InDesign

I am trying to create a template for XML data using InDesign. Basic Structure is: ... .... Each section has a variable number of…
Brian Chance
  • 1,249
  • 10
  • 15
10
votes
2 answers

Need to JSON stringify an object in ExtendScript

I am working on processing meta data information of my Indesign document links, using ExtentdScript. I want to convert the object to string using JSON.stringify but when I use it, I am getting error saying: can't execute script in target…
Madasu K
  • 1,813
  • 2
  • 38
  • 72
10
votes
1 answer

What is the difference between app.doScript and $.evalFile?

The only difference I have found so far: If a script that is run by app.doScript returns an error, the file and line number of the error are overridden by the file and line number of the app.doScript call. Are there any other differences I should…
dln385
  • 11,630
  • 12
  • 48
  • 58
10
votes
4 answers

How to open a text file using Javascript from Adobe Indesign CS4?

How can I open a text file, read the contents, and then insert the contents into a document in InDesign?
lecter
9
votes
5 answers

Getting the stack trace of an error in ExtendScript

When I catch an error in ExtendScript, I would like to be able to log its stack trace. It appears that errors do not contain stack traces in ExtendScript, so I'm playing around with the idea of adding stack traces to errors. The only way I know of…
dln385
  • 11,630
  • 12
  • 48
  • 58
9
votes
2 answers

How to require or include scripts in indesign?

How do I load another script file and run a method on it? I'm using InDesign javascript and I don't know how to include multiple files in the same script.
Totty.js
  • 15,563
  • 31
  • 103
  • 175
9
votes
2 answers

What is #targetengine?

My only prior experience with #targetengine is when I've used #targetengine "session"; to turn a dialog into a palette when scripting in InDesign. But as I'm trying to figure out how to script a menu, I'm starting to see it pop up being used in…
Brendan
  • 868
  • 1
  • 16
  • 38
8
votes
4 answers

Any kind of external IDML Viewer

starting with InDesign CS 5, there is a new format, called IDML, that defines a document to be rendered by InDesign. I'm looking for a way to view this format without opening InDesign (which is damn too heavy). The optimum solution would be an…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
8
votes
2 answers

Get current page number in InDesign CS5 from Javascript

What is the DOM expression to get current page where the cursor is: app.activeDocument.currentPage ?
PeterMmm
  • 24,152
  • 13
  • 73
  • 111
8
votes
3 answers

How do I create a folder using ExtendScript?

This seems like it would be a very easy problem to solve, but I've been banging my head against it for almost an hour. All I need is a snippet of javascript/extendscript code so that my InDesign CS6 script can create a folder. I know the existing…
1
2 3
78 79