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
1 answer

InDesign object model: number of current page

There is cursor on the page (one page - one text frame) in inDesign. Is it possible with JavaScript to get number/id of current page (text frame) with cursor? Probably solution app.activeWindow.activePage.name returns number of the page on the…
3
votes
1 answer

How to target a TOC after generating via inDesign's createTOC function

I'm trying to target a table of contents object that is generated by inDesign's createTOC function. I am successfully generating the object, but I can not set any kind of identifier properties like tocTF.name = "myToc" When I examine it in the Data…
Uncle Slug
  • 853
  • 1
  • 13
  • 26
3
votes
3 answers

InDesign Applescript: "override master page items" glitch?

Here's a very simple script that overrides all master page items on page 1: tell application id "com.adobe.InDesign" tell active document override every item of master page items of page 1 destination page page 1 end tell end…
3
votes
1 answer

Images in a multistateobject

I want to change the position of a picture located within a multistate object. I have joined two rectangles (one of which contains a placed bitmap) to form a multistate object together. But now I can't address these rectangles as rectangles anymore,…
3
votes
1 answer

Embed images into adobe InDesign template using URL

I want to load an image into an InDesign template using an internet URL when I import an XML. Is this possible? Or does the image need to be stored on the local machine?
Matt Sleeman
  • 135
  • 7
3
votes
5 answers

Remove items from one array if not in the second array

I state that I have tried for a long time before writing this post. For an InDesign script, I'm working with two array of ListItems. Now I'm trying to remove the items of one array that aren't in the second array, but i'm stuck. Given that I use the…
3
votes
1 answer

PDF downloading instead of opening in new tab

This is not a back-end programming question. I can only modify the markup or script (or the document itself). The reason I'm asking here is because all my searches for appropriate terms inevitably lead to questions and solutions about programming…
DaveC426913
  • 2,012
  • 6
  • 35
  • 63
3
votes
1 answer

Indesign Script does function twice

I'm assembling a script to automate the production of different versions of a report. The script will first import the XML file, and then run some other functions to tidy up the Indesign project. When I run this script, var myMenuAction =…
3
votes
0 answers

Text replacement in PDF document using javascript

I have some PDF templates that contain placeholders for things like a name, company, etc. They are in the format <<'NAME'>> or <<'COMPANY'>> Currently the process at my company is to replace all of these placeholders by hand when we get the…
3
votes
2 answers

InDesign script error: "Expected Layer, but received Layer"

I have a (very large) script running in InDesign that, at one point, places a Library asset onto the page, then moves it to a certain layer. This script runs just fine on all of our computers here, but only when there are no other documents open in…
Sturm
  • 689
  • 2
  • 23
  • 52
3
votes
2 answers

PDF text extraction issue - font/capitalization inconsistencies

I am trying to extract text from a pdf book and continue to run an issue where sections of copied text fail to retain the proper capitalization properties when pasted into a text document. I have rights to reproduce the book and also have a license…
3
votes
3 answers

InDesign copy layer to another document

I am trying to write a script that copies a layer from one document into another. var srcDocName = 0; var destDocName = 1; var layerNameOriginal = "Original"; var layerNameCopyTo = "Destination"; var destDoc = app.documents.item(destDocName); var…
Loopo
  • 2,204
  • 2
  • 28
  • 45
3
votes
1 answer

How to detect shift down when clicking on ScriptUI button?

On my scriptUI panel, I have a button. How can I detect whether the user is holding the shift key when they click on the button?
bgmCoder
  • 6,205
  • 8
  • 58
  • 105
3
votes
1 answer

Generating documents in multiple applications

I need to create an application that generates a bunch of templates for Office (2000), OpenOffice.org (2.0) and InDesign. The design of the templates will be made in each application but we need a system for placeholders so that my application opens…
ZippyV
  • 12,540
  • 3
  • 37
  • 52
3
votes
1 answer

When is "var" parsed?

Sometimes var affects code before it, and sometimes not. Take this example: base.jsx: $.global.a = 1; $.writeln("a: " + a); var a = 2; Running this prints a: 1. Running $.evalFile("base.jsx"); also prints a: 1. However, running (function() { …
dln385
  • 11,630
  • 12
  • 48
  • 58