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

javascript regex to remove whitespace fails, why?

I use text.replace(/\s/g, '') to remove all whitespace characters from a String. I'm trying this on a russian text. I do an alert(text) which shows me the correct string, but the replace function throws this error - Bad Argument /\s/g I'm creating…
divyanshm
  • 6,600
  • 7
  • 43
  • 72
0
votes
1 answer

Javascript/InDesign: Check if Object has certain property

I'm using Javascript for InDesign scripting. I have an image object and want to know it's bounds (the one that the user sees) - bounds = (geometricBounds in image.parent)? image.parent.geometricBounds: image.geometricBounds; returns ReferenceError…
divyanshm
  • 6,600
  • 7
  • 43
  • 72
0
votes
1 answer

InDesign scripting: How to print specific spot color in separations?

This is my most difficult question to date! I am still a beginner to ExtendScript & JavaScript, but I am learning fast. Right now, I need to figure out how to tell InDesign to print specific pages of the active document using a printer preset…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

InDesign: ExtendScript to list fonts and extended font information

I need to list detailed information about the fonts used in a set of inDesign documents. The information I need is essentially accessible through the menu item Type › Find Fonts… (as explained here) but going through each font in every document and…
wna
  • 25
  • 2
  • 9
0
votes
1 answer

Find text content by char style

I'm just starting with Indesign (CS5) scripting. I Try to get content (text) by char style. I made a little script, it's work when I diplay in alert the content, but not when I try to write it to a txt file. do you have any idea ?? var myDoc =…
Mitchum
  • 107
  • 2
  • 16
0
votes
1 answer

Javascript code to open several files in subdirectories

I'm a fairly new programmer. I'm attempting something pretty advanced, but I enjoy a good challenge. :~) I'm using Adobe's ESTK (ExtendScript Toolkit) to write a complex script for InDesign CS6. I've gone through most of the tutorials and have…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

How to replace selected text in InDesign via script?

In my scripted UI panel, I have a button that is supposed to insert some text. I came up with this routine, which, indeed, inserts whatever text wherever I want, but if there is any text already selected, it doesn't replace the selection. How can I…
bgmCoder
  • 6,205
  • 8
  • 58
  • 105
0
votes
1 answer

How to display a Rectangle above a Table in Adobe Indesign? (layering)

I have 1 table in InDesign. Now I add a Rectangles on the Page, but it is behind the Table object. I want the Rectangle to be in front of the table. (i.e. the z-index of the table should be more than the rectangle) How to achieve this using InDesign…
D T
  • 3,522
  • 7
  • 45
  • 89
0
votes
1 answer

How to copy all the contents of various threaded textframes to another textframe in indesign with javascript?

I would need to copy all the text, formatting and images to another textframe. I've tried with text but it only copies the first textframe and not all the text from the threaded textframe. thanks
Totty.js
  • 15,563
  • 31
  • 103
  • 175
0
votes
2 answers

Creating a installation package for an Indesign JavaScript

Not sure if the heading is clear enough for what I am looking to do. But here's the explanation: I have a .jsx file, which does something. I want to create a setup file for mac and pc, just like we have .jar, .exe, .dmg. When the user installs this…
Bruner
  • 43
  • 1
  • 8
0
votes
1 answer

indesign script to set font based on xml parent's attribute

I am trying to find an Indesign javascript that can set the font and style based on the import XML parent's attribute, 1000w10 max
Pat
  • 163
  • 4
  • 12
0
votes
5 answers

How to load scripts from a custom folder in InDesign? like from a central repository

I would need a folder to be shared on the server and InDesign CS6 would need to load the scripts from that particular location. Is this possible?
Totty.js
  • 15,563
  • 31
  • 103
  • 175
0
votes
3 answers

how to fix this GREP statement

I'm trying to select just the x 舌ぽう (舌鋒x) ぜっぽう (sharp) tongue じょう舌 (饒x舌) じょうぜつ garrulity, loquacity Its always in parentheses. So I want to LookBehind for a left parenthesis then zero or more characters, and LookAhead for zero or more character…
ChatGPT
  • 5,334
  • 12
  • 50
  • 69
0
votes
3 answers

Indesign CS6, Javascript

I am a javascript beginner. I am working in indesign CS6. I have assigned paragraph and character styles to all the fonts being used throughout my document. Using character styles I have changed the color of some type to be purple. The purple text…
0
votes
0 answers

How to import multiple XML files into one inDesign document without copy/paste?

I use InDesign CS6, and I have several XML files with the same structure. Only the data are different. I created an Indesign layout with some tagged placeholder frames on merge mode, for automated layout. Today for each XML file I have to create a…
wonder garance
  • 329
  • 1
  • 6
  • 14