Questions tagged [extendscript]

ExtendScript is one of the scripting languages available for implementing custom functionality for Adobe products like Photoshop, Illustrator, etc. ExtendScript is based on, and has been kept locked specifically to, ECMAScript 3 (released in 1999).

ExtendScript, or JSX (not to be confused with React's JSX markup) is a scripting language based on ECMAScript 3 (1999) used for scripting custom functionality in Adobe products like Photoshop, Illustrator, etc.

It is syntactically equivalent to JavaScript 1.5, with the same standard library, as well as a custom API for interacting with Adobe product applications and documents.

ExtendScript does not support any language features or standard library functions that were introduced after ECMAScript 3.

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

Flash inside Flex inside ExtendScript

i have been working on a Photoshop UI project and also working with Flash Builder for about 3 weeks and i can't find a solution to a communication problem. Here are some details about the issue; if you are interested in helping me, thanks. The main…
eren
  • 1
0
votes
1 answer

HTTP: "ERROR bad Request-Line"

I'm trying to make a HTTP request from a Adobe Illustrator Script (this question is not really JSX-related, though) via BridgeTalk to a local Rails app using a Socket connection (as you you see — plenty that could go wrong ;) ). Finally managed to…
polarblau
  • 17,649
  • 7
  • 63
  • 84
0
votes
1 answer

Where are the files for Adobe (CS5.5) InDesign's *export as XHTML*?

From Adobe's GETTING STARTED WITH ADOBE INDESIGN CS5.5 PLUG-IN DEVELOPMENT (page 112): In InDesign CS5, the Export as XHTML/Dreamweaver feature is implemented completely using ExtendScript. Export as XHTML/Dreamweaver is not distributed as a…
Shawn
  • 10,931
  • 18
  • 81
  • 126
-1
votes
1 answer

count tabs gather data from tabbed delimited text .JSX Adobe InDesign

I need to know how to read data from tabbed delimited text file in order to export merged documents to correct location. -- will always be 4th tab 2nd row (group number) directory will be named by group number -- have directories already created by…
jmituzas
  • 593
  • 3
  • 14
  • 28
-1
votes
1 answer

how to make an arc rotating around a center in ExtendScript After Effects?

I want to make a loading animation in After Effects using scripts I get no arc only white screen with shape layer there and this is what gets rendered in the app This is my code that doesn't…
Pragyan
  • 349
  • 2
  • 14