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 CS5 Script: How can I place another InDesign document into a new InDesign document?

I am creating a new InDesign document with  var newDoc = app.documents.add() . I am trying to place another pre-existing InDesign document that has paragraph styles into the new document. The reason why I'm not simply using…
Ian Campbell
  • 2,678
  • 10
  • 56
  • 104
0
votes
1 answer

InDesign CS5 Script: opening a document is unresponsive, and isn't throwing an error?

I am using the method  myFile.execute()  to open an InDesign document programmatically (in this case, it is a blank document with styles applied to it). The document is sometimes opened, and at other times it is not... It seems as if the script…
Ian Campbell
  • 2,678
  • 10
  • 56
  • 104
0
votes
1 answer

InDesign CS5 Script: How can you display a directory?

I have a script that: creates a new folder scans an InDesign document for images formats the images and copies them to the new folder When the script is done doing all of this I want it to bring to focus the new folder directory (in…
Ian Campbell
  • 2,678
  • 10
  • 56
  • 104
0
votes
1 answer

InDesign CS5 Script: How can I open and close a popup window after `n` seconds?

The window is opening fine, but the script will not continue until the popup window is manually closed! This is not desirable, as I would rather the window close itself after  n  seconds... So do I have to open the window in a separate thread from…
Ian Campbell
  • 2,678
  • 10
  • 56
  • 104
0
votes
2 answers

InDesign CS5 Script: Why is `#targetengine` not working correctly?

I understand that the declaration #targetengine "myEngineName" would be used for InDesign to remember global variables (found information on this here:  http://incom.org/post/89818). However, this was still not enough for it to remember global…
Ian Campbell
  • 2,678
  • 10
  • 56
  • 104
0
votes
2 answers

InDesign CS5 Script: How do I use BridgeTalk to save new images from Photoshop?

This script is attempting to: create a new folder scan an InDesign document for all images convert all images to grayscale in Photoshop save new grayscale images in the new folder from Photoshop Converting the images to grayscale in Photoshop…
Ian Campbell
  • 2,678
  • 10
  • 56
  • 104
0
votes
4 answers

InDesign to output PDF containing multiple copies in a single page of the same InDesign artwork

For example if I have a business card design done in InDesign and now I need to provide print ready PDF for printers containing multiple copies of the business card. How would you do that? Are there any specific tools?
Andriusa
  • 2,224
  • 2
  • 17
  • 16
0
votes
2 answers

InDesign CS5 / Script: Can I convert TIFF and PNG images to `black and white`?

I have a script that scans a document for all image types, converts them all to black and white, and then exports the black and white images to a new folder. It seems as if InDesign will export these image file-formats:  JPEG, TIFF, and PNG (it…
Ian Campbell
  • 2,678
  • 10
  • 56
  • 104
0
votes
1 answer

InDesign CS5 Script: Oval 'transformReferencePoint'

I'm trying to change the reference point of an oval in javascript for an InDesign CS5 script. Here's what I've been trying: function addFid(top, left, bottom, right) { var circle = myDoc.ovals.add(); circle.geometricBounds = [top, left, bottom,…
atb
  • 943
  • 4
  • 14
  • 30
0
votes
1 answer

as3 find out if as3 is busy with anything

I would like to find out is as3 is doing is doing anything in the bakground. My exact problem is that i'm trying to package a document with the indesign sdk, right before that i'm importing xml, and the problem is that the document cant be save when…
vincent
  • 1,243
  • 4
  • 15
  • 29
0
votes
2 answers

How can I programmatically close the story editor in InDesign using ExtendScript?

I use a script which opens the story editor like this: app.menuActions.itemByID(119793).invoke(); How can I close it programmatically? How can I detect whether it's opened or closed?
Shawn
  • 10,931
  • 18
  • 81
  • 126
0
votes
2 answers

Actionscript error when executing eventlistener in javascript

I have the following code using actionscript and the indesign sdk: At the beginning of my Class [ Embed (source= "resources/js/eventHandlers.jsx" , mimeType= "application/octet-stream" )] private static var jsHandler:Class; var …
vincent
  • 1,243
  • 4
  • 15
  • 29
0
votes
1 answer

Adobe Indesign CS5: How can I access an image's name, file-type, and other properties?

I am intermediate with Javascript, but am not so familiar with Adobe's "Extendscript". For practice and a better understanding of InDesign's code structure, I am trying to access properties of an image via rectangles.images. Is this possible to…
Ian Campbell
  • 2,678
  • 10
  • 56
  • 104
0
votes
1 answer

How can I remove italic and bold styling from all footnote references in an InDesign document using ExtendScript?

I'm trying to remove bold and italic styling from footnote references in an InDesign document using ExtendScript. By footnote references, I mean the little number that appears in the main text. That is, I want to strip the italic and boldness from…
Shawn
  • 10,931
  • 18
  • 81
  • 126
0
votes
1 answer

How to tag specific images?

I'd like to tag specific inline images in my document but am a but stuck on the actual tagging part. What I already have is the following : var myDoc = app.activeDocument; var myItems = myDoc.allPageItems; var foundInlineImages = Array(); // loop…
Wokoman
  • 1,089
  • 2
  • 13
  • 30