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

GREP to find long quotes in text

I'm trying to find long quotes in the text that I'm editing so that I can apply a different style to them. I've tried this GREP: ~[.{230}(?!.~]) What I need is for the GREP to find any 230 characters preceded by a left quote mark, not including any…
-1
votes
1 answer

Indesign Exporting the Page

I am trying to export the page of the document. I am facing issues both in exporting the page or even exporting an item of the PAGE of the document While exporting a Page of the Document: app =…
Sofi
  • 498
  • 4
  • 12
-1
votes
1 answer

how can I extract text from indd files or indesign files using python programs?

I need to create an api where user will provide indesign file and I need to extract text from it.
-1
votes
1 answer

Indesign Javascript - Make an array from grep query

I have a very long list of entries and I can select the individual entries I need via a GREP query but what I want to do is, each time a GREP query finds a match, I want it to add that selection to an array. The point being, that if I have all of…
Rory
  • 11
  • 2
-1
votes
3 answers

Is it possible to filter consecutive numbers from an array in javascript?

I have arrays like this one below. [1,2,3, 10, 15, 24,25,26,27] What I want is to filter out the non consecutive numbers excluding the first number in a series but keeping the last in a series like this below. [2,3, 25,26,27] I am new to coding…
dnest007
  • 35
  • 7
-1
votes
2 answers

How to find two GrepPreference in InDesign using javascript?

Is there a way to find two options using the app.findGrepPreferences in InDesign JavaScript? For example how to find all SmallCaps text that is underlined and italic? I only know the code to find small caps, which is…
hale
  • 171
  • 2
  • 5
  • 12
-1
votes
1 answer

Is it possible to program a WebApp where u can import an .csv and export as pdf?

So i am currently working on a project for my company. The target is to make an automated pdf genarator for our products. I want to programm an WebApp for this and constantly implement new functions. We have a prepared Indesign file with a guidline…
-1
votes
1 answer

Search - Replace text in PDF or indesign document from PHP

I am trying to automate some stuff and need to then replace some text in a PDF document generated from InDesign. It's on a linux server so I am looking for a PHP script to replace the text - either in the Indesign document or even better the PDF…
-1
votes
2 answers

What is the result of true && true && true && false && true && true && true in javascript?

Should the following: true && true && true && false && true && true && true (with 6 "trues" and 1 "false" in the middle, all connected by &&) result in true or false? The program I'm using, Adobe InDesign (which uses a JavaScript-based scripting…
-1
votes
1 answer

Indesign scripting to get all textframes of a page in order

I am trying to get all the text frames for a single page in order but I was always getting them in random order when using the myDoc.pages[1] //assuming the 1st index page >> [object Page] myDoc.pages[eachPage].textFrames //get all the text…
Sundeep Pidugu
  • 2,377
  • 2
  • 21
  • 43
-1
votes
1 answer

Regex: Replace "something" by a unicode character

I am trying to figure out how to find a certain character and replace it with a Unicode character. In my example, I want to find all spaces (\s) and replace them with a narrow or thin space (e.g. Unicode U+2006). Sample Text 8. 3. 2014 Search…
r00ky
  • 35
  • 6
-1
votes
1 answer

Indesign javascript ERROR: MODAL DIALOG OR ALERT IS ACTIVE adobe extendscript toolkit

I try to run my javascript code by indesign but there is the error: MODAL DIALOG OR ALERT IS ACTIVE. Who knows how to solve this problem? #target "InDesign" w = new Window ('dialog'); magicButton = w.add ("button", undefined, "Buttton"); …
-1
votes
2 answers

Formatting numbers to currency format in Indesign using GREP

I am trying to figure out how to use GREP to add comma (,) and Dollar sign ($) to numbers in InDesign. For example, A GREP configuration to turn 4 digit numbers such as 2000 into $2,000 A GREP configuration to turn 5 digits numbers such as 20000…
-1
votes
1 answer

InDesign script searching for a word and printing page number(s)

I need an InDesign script that does the following: Searching for a specific word in a specific paragraph style throughout the document Printing the page number(s) to the console or as a .txt (I mean not the amount of pages, but the page number(s),…
VHS
  • 71
  • 3
  • 13
-1
votes
1 answer

Check if file exists locally in Adobe Extendscript

I try to check for local files (.jpg) using a plain js loop. I get an error that, for example, file 5d3eb1905b243.jpg does not exists, but actually it does. Also, I don't understand why the else statement ins't working and why 5d3eb1905b243.jpg…
VHS
  • 71
  • 3
  • 13