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

InDesign scripting: access instances that have specific style applied to

I'm pretty new to InDesign scripting and want to do the following. I have headlines with a style called h2 applied to. How can I get a collection of all these instances for manipulation? Thank you.
jhuk
  • 103
  • 1
0
votes
1 answer

The same property of Note is sometimes an array of one object, sometimes the object itself. Why?

The type of a Note’s parent or storyOffset property depends on whether the note was obtained from a Text or a Story. Why? How to deal cleanly with this in code working on a Note without knowing where it came from? The following scripts expose the…
0
votes
3 answers

Change text using a variable in InDesign javascript

I'm trying to find all "#"s on the active page and change them to numbers, ie. 1, 2, 3 . . . The code below is what I thought would work but it doesn't. Instead, it changes every "#" to a "0". app.findTextPreferences = app.changeTextPreferences =…
ali haydar
  • 125
  • 10
0
votes
1 answer

Indesign All Layer to illustrator

Hi Guys is it possible to move layers of indesign to Illustrator. For Example If we have multiple layers in indesign all layers should moved or exported to Illustrator. How can it be done, Do any one have script for this? Any IDEA.??
Kumar_23
  • 19
  • 8
0
votes
1 answer

Trying to get a batch file to run from Adobe InDesign Export window to open a Chrome extension ePUB reader

I am an ePUB book developer who uses Adobe InDesign CC2015 on Windows 10. Once I complete my edits, I have to export the contents from InDesign to a .epub file and preview it for accuracy. The InDesign export window has an option to configure 1 or…
CP Creative Studio
  • 125
  • 1
  • 2
  • 8
0
votes
2 answers

Merge Data with InDesign and Loop through a Subset of Data

I have a spreadsheet I am using Data Merge to pull into my InDesign publication. One of the fields contains multiple rows of data, but is only separated by HTML tags... UL list actually. I am not too experienced with InDesign btw... Is there a way…
jasonflaherty
  • 1,924
  • 7
  • 40
  • 82
0
votes
2 answers

Paginating imported XML Data

All, I'm having a hell of a time getting this to work. I have a very basic XML structure:
NEW HEADER
NEW BODY - Sed auctor justo et erat rutrum, nec molestie neque placerat. Quisque efficitur…
gin93r
  • 1,551
  • 4
  • 21
  • 39
0
votes
1 answer

Library to identify the MIME Type of InDesign files in Python

Anybody knows a library that helps to identify InDesign files? I was trying python-magic, but i got application/octet-stream for .indd files and application/zip for .idml files (I know this is a zip file indeed). I'm aware there is no official…
trinchet
  • 6,753
  • 4
  • 37
  • 60
0
votes
2 answers

ld: file not found: @executable_path/InDesignModel.framework/Versions/A/InDesignModel for architecture x86_64" error

I am trying to compile Indesign plugin code using Xcode 7.0 and MAC 10.10.5. But I am getting "ld: file not found: @executable_path/InDesignModel.framework/Versions/A/InDesignModel for architecture x86_64" error. I have spent lot of time to resolve…
Subodh Kumar
  • 229
  • 3
  • 8
0
votes
1 answer

With Indesign, how to reproduce a sequence of menu commands via script?

I have an Indesign (CC2015) doc like this: Manually, I can obtain n paths with this menu command sequence: Select all Object –> Pathfinder –> Add Release compound path How can I get the same result with a script using Applescript or Javascript?
Paolo
  • 3
  • 2
0
votes
1 answer

Create as many pages as necessary for dynamic content

I have a template which I'm filling with text. There is a header page, and several content pages after the header. Each content pages has two columns, and some logos and things at the bottom. I'm filling in the content dynamically with images and…
Sam Barnum
  • 10,559
  • 3
  • 54
  • 60
0
votes
1 answer

How do I save a text file using an InDesign script?

I'm extracting some data from an InDesign INDD file using a script. I'd like to save my data in a txt or json file, but my file is not saving successfully. var data = 'string of data'; var filename = 'CS111.json'; var file = new File(filename); var…
Jack Steam
  • 4,500
  • 1
  • 24
  • 39
0
votes
1 answer

How do I get the index of a specific Paragraph in a Paragraph Collection in InDesign?

I'm extracting some text from a series of INDD files using a script. I have a paragraph from a findGrep() result, and I'd like to start a for loop at this paragraph in the parentStory paragraph collection: var paragraph =…
Jack Steam
  • 4,500
  • 1
  • 24
  • 39
0
votes
2 answers

Clearing character style overrides when deleting styles in Indesign using Applescript

I'm converting 400+ documents to a new layout format. I'm trying to delete a character style and remove the formatting for it. (AKA, delete a character style with the checkbox checked). Here's my code: delete character style "Exhibit Number" of…
0
votes
1 answer

Can I create table with various rows in inDesign when using xml?

I'm making product sheets for our products. I have product data in xml like this: Item A