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

Destroying ScriptUI palette windows (and more)

In ExtendScript, I've run up against a very strange scenario with which I need some help from a ScriptUI guru. I've got a huge InDesign script that, during the course of its execution, displays a progress bar in a palette window. (var w = new…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

Is there a performance difference between saveAs() and exportDocument()?

When exporting an image in Photoshop, is there a performance difference between app.activeDocument.exportDocument() and app.activeDocument.saveAs()?
0
votes
3 answers

Illustrator Javascript set font attributes

I am relatively new to scripting for illustrator and I am having a hard time wrapping my head around it. I would like to select some text (the whole range) and set some attributes to it. I have named the text object in the layers panel and if…
VIDesignz
  • 4,703
  • 3
  • 25
  • 37
0
votes
1 answer

InDesign: Changing default Cell Style

I am trying to change the default document settings for a batch of InDesign documents – that is, the styles, swatches etc. that are 'active' (marked blue) in an open document with nothing selected. But I have a hard time figuring out how to change…
UncleToft
  • 38
  • 9
0
votes
1 answer

InDesign ExtendScript script sometimes creates a corrupted PDF during export

I've had this problem for a while, now. Close to the end of my "Proofing" script, the currently opened document in InDesign is to be exported to two different .pdf files. The first is password-protected while the second is not. I don't seem to…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

Print Photoshop document using Adobe Extendscript

Could someone please show me how to simply print photoshop document using Extendscript Javascript? Current lines are: var doc = app.activeDocument; var array = [ "Name Surname 1", "Name Surname 2", "Name Surname 3" ]; for( var i = 0; i <…
Rozkalns
  • 510
  • 2
  • 6
  • 26
0
votes
2 answers

Changing a ScriptUI control after its window is already shown

So I have a (hopefully) simple one this time. I have a ScriptUI window programmed in ExtendScript for Adobe InDesign CS6. It contains a StaticText control. After this dialog window is shown to the user, I would like to change the text of that…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
2 answers

Photoshop jsx image grid

What I am ultimately trying to do is to create a grid of images for print that are minor variations of the same thing (different text is all). Looking through online resources I was able to create a script that changes the text and exports all of…
sfaust
  • 2,089
  • 28
  • 54
0
votes
2 answers

After Effects applyPreset : bad path

So I'm totally new to ExtendScript, and already amazed. I've been trying to automatize the creation of standard videos, and to do so I want to create presets and apply them to footage. So I use the applyPreset(File) method of the layers. The new…
Charles
  • 988
  • 1
  • 11
  • 28
0
votes
1 answer

Binary processing speed with JS dialect

Working with Adobe's dialect of Javascript called ExtendScript (reportedly based on ECMA-262, ed.3/ISO/IEC 16262), I aim to process binary files. ES does not support ArrayBuffer, and so I read parts of the files into a string and use toCharCode to…
Jongware
  • 22,200
  • 8
  • 54
  • 100
0
votes
0 answers

What am I doing wrong with this triple-nested loop?

I am currently working on a script that takes artwork that has a number of text fields in illustrator and duplicating the artitem with the text fields filled with data from a FileMaker XML file. Note: Even though this is an Illustrator extendscript,…
Hussien Hussien
  • 150
  • 1
  • 3
  • 14
0
votes
2 answers

Where can I put an included ExtendScript so it doesnt show on the menu?

I have a script for Photoshop (jsx) that includes a utility script (jsx). I don't want the utility script to be directly invokable from the Scripts menu. Where can i put it (on OSX and Windows both) so that it can be included by my visible script…
user430788
  • 2,143
  • 2
  • 17
  • 17
0
votes
2 answers

Repeated showings of a ScriptUI window

Got another "should-be-easy" problem. I've got a ScriptUI window in which I need to check to make sure all of the fields are filled. The idea is that, when the user clicks the "OK" button, the script checks to make sure the fields are filled in. …
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

Change the size of a dialog window based on an action in ScriptUI

ScriptUI is wonderful, but seems to have some limitations. I am looking for an ability to dynamically resize a dialog window based on an action taken on one of the controls inside of it, such as an .onClick() or .onShow() callback. However, the…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

Adobe Indesign MailMerge Performance

I have one Adobe Indesign indd file which I need to merge data (MailMerge). I use Adobe InDesign Server 5.5 to run below InDesign script. var _Path_INDD = "/c/ServerTestFiles/Dummy/Template.indd"; var _Path_CSV =…
Frank Myat Thu
  • 4,448
  • 9
  • 67
  • 113