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

Adode InDesign ExtendScript: Making an element a child element of another

I'm looking for a way in Adobe InDesign CS5+ to make one element a child element of another (similar to what you can do with Edit -> Paste Into). I can't use the app.pasteInto option unfortunately because in my script, the window is not visible. Is…
Pieter Claerhout
  • 348
  • 4
  • 11
0
votes
1 answer

evaluate XPath expression not working for attribute (xml:lang) in indesign

I am using Xpath expression in Adobe Indesign, to collect the list of elements. I am using the below code to generate it. tell application "Adobe InDesign CS5.5" set user interaction level of script preferences to never interact tell active…
robin
  • 25
  • 6
0
votes
1 answer

Xpath not working when element contains xml:lang attribute

I am using an Xpath expression in Adobe Indesign to generate the list of elements used. I came to know, that if the element contains "xml:lang" attribute, then my Xpath expression does not work in Adobe Indesign. For example in the below XML: …
siva2012
  • 457
  • 4
  • 19
0
votes
1 answer

Indesign (Javascript) footnote as crossref destination destroys numbering

yeah i have a problem. So i have a script which puts all footnotes at the end of the document and makes crossreferences from the little number in text to the fitting endnote. now i want to add a backlink, so when i have a long document(book) i dont…
fredlllll
  • 75
  • 8
0
votes
1 answer

Update xml file node attribute in actionscript

We need to modify/update the xml attribute of .idms file. using actionscript. I'm using below approach to do that. protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void { var file:File =…
0
votes
3 answers

Selecting textFrames inside of a group in InDesign CS6

Similar to my earlier problems with finding a textFrame on a page based on its geometricBounds or by part of its name, I now am running into the problem of finding textFrames if they are inside groups. If I use an array of all textFrames, such…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

evaluate XPath expression in indesign

I tried this code: tell application "Adobe InDesign CS6" set ParaIdOrSecId to "ti0005" set xpa to "//*[@*='" & ParaIdOrSecId & "']" as string tell active document tell XML element 1 set Requriedxpa to evaluate XPath…
robin
  • 25
  • 6
0
votes
2 answers

InDesign style variable

Is there a way to use variables in styles (script?) to share styles with some variations, like color? Example: I am laying out a book, with multiple chapters. Each chapter is an InDesign document. I would like to use common styles for all the…
Regis Zaleman
  • 3,182
  • 6
  • 29
  • 30
0
votes
1 answer

using XSLT to change and merge element in XML

I'm quite new to XSL, and I'm trying to change and merge element. I need to use the XML within InDesign Before: Smith Paul New…
0
votes
1 answer

How to untag Root Element in Indesign using Applescript

I have Tried Following Code tell application "Adobe InDesign CS5.5" select text of XML element 1 of active document set xmlelem to item 1 of associated XML elements of selection untag xmlelem end tell I got an error "Adobe InDesign CS5.5 got…
robin
  • 25
  • 6
0
votes
1 answer

Cannot set the printBlack printPreference in InDesign

I've learned an enormous amount of scripting for InDesign CS6 thanks to all of the helpful folks here! Now, it's a problem with setting the printPreferences for a document. Here is the code I have: with(document.printPreferences) { …
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

How to get the minimize/maximize event of an application

I've made an InDesign plugin (in C++) that loads a DLL. I've been able to call its methods and handle its events in my plugin. Now, I'm stuck with a thing— I want to get the event when the InDesign application is minimized/maximized and perform…
Sahil Mittal
  • 20,697
  • 12
  • 65
  • 90
0
votes
1 answer

InDesign CS6 Script to Change Style based on XML Attribute not working

I'm working with XML files in InDesign CS6 that each have several dozen paragraphs where the attribute class="boxtitle". Each of these need to be set to the "Boxtitle" paragraph style. Because InDesign won't let you set styles based on attributes,…
ajw-art
  • 173
  • 1
  • 1
  • 12
0
votes
1 answer

Finding a textFrame in InDesign based upon its geometricBounds

My next problem is to identify a specific textFrame in InDesign CS6 by referencing its positon on the page. I know I can use textFrame.geometricBounds to get its position, but I'm having trouble getting the if statement to work, even though it…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

Threading text like in Indesign with HTML/JS

How to program threading text like in frames in Indesign. Link: http://helpx.adobe.com/indesign/using/threading-text.html I want to use three columns in HTML. In these columns I will add one text. Whenever the content of the text exceed the column…
zyrup
  • 691
  • 2
  • 10
  • 18