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

extendscript: get Filepath of Project

Iam trying to get the current Filepath of my After Effects project (not Jsx) var path=app.project['file']; this variable "path" is giving me the a current FileObject name but it is a File-Object not a String. I need the alert as String. Or is…
dazzafact
  • 2,570
  • 3
  • 30
  • 49
4
votes
1 answer

InDesign CC 2014 Extendscript: How to reliably close document after asynchronous PDF export

I've written an indesign script which generates documents that need to be exported as PDF files. Exports happen asynchronously so that the user can continue working. The generated documents remain open in the background during the export process,…
4
votes
1 answer

Changing selected text layers language with photoshop script

Though I managed to put a functional script to change the dictionary language of selected layers together, it's not quite what I need yet. I'm currently retrieving the index of my selected layers, using them to get the layer names—it's the…
Rhaenys
  • 172
  • 10
4
votes
1 answer

How to quit Illustrator and ExtendScript Toolkit from a script?

I use a .jsx script to open an Illustrator file, modify it, then save and close it. The script is called from another program. After the script execution, I need to quit both Illustrator and ExtendScript Toolkit softwares. I tried the following…
superrache
  • 650
  • 11
  • 26
4
votes
2 answers

How can you prevent the "Update Links" dialog to appear when opening documents from code?

I'm trying to Update Links of inDesign documents using ExtendScript, but whenever I open the document the dialog appear asking me if I want to update the link. I want to do it in the background, so is there a way to prevent this or any dialog from…
Eric B.
  • 338
  • 3
  • 14
4
votes
1 answer

How do I debug a script relying heavily on an existing Illustrator document?

I'm using Adobe Illustrator CS5 and ExtendScript Toolkit CS5. I've got a very involved script and alert() isn't working anymore because stuff is within a loop. How can I simulate the fact that I'm using a specific Illustrator document so that I can…
JackWilson
  • 577
  • 3
  • 20
3
votes
2 answers

Illustrator ExtendScript set FILL opacity of selection

Is there any way to access a pathItem's fill opacity with javascript? I can access the overall opacity, but I want to lower the opacity of the fill while keeping the stroke fully opaque. I can't find anything in the documentation, nor can I find…
cr0ybot
  • 3,960
  • 2
  • 20
  • 22
3
votes
5 answers

database use with ExtendScript (for Adobe Illustrator)

I want to refactor a VB program into ExtendScript to automate some drawing in Adobe Illustrator CS4, but have a requirement to read from a database. Is it possible to read from a database using ExtendScript? How?
jcarm
3
votes
2 answers

How I can save file with script Photoshop?

I want to write a script that would substitute different text from a text file into my shalon and save the image in jpeg format. An error occurs: "This function may not be available in this version of Photoshop" on this…
Alevtina
  • 147
  • 11
3
votes
1 answer

Open a directory of images into separate layers using Adobe extension

I am developing an Adobe extension, from within the extension I want to load a directory of images into separate layers within a document. I am completely impartial to how this is done - so if there is a better approach, please share it with me. My…
EvilZebra
  • 1,072
  • 8
  • 18
3
votes
1 answer

Transforming compItem to different sizes using ExtendScript doesn't work as expected

I have a compItem in AfterEffect of ratio 9:16. I am writing a script to auto transform it to different size/ratios. For example to 16:9 and other etc. If I duplicate the current compItem manually through AfterEffect and change the pixel size (from…
Ishan Patel
  • 5,571
  • 12
  • 47
  • 68
3
votes
7 answers

Compare array items (items are arrays) if items in same position are equals

I'm using Adobe ExtendScript Toolkit to debug. I'm coding for InDesign and really don't have deep JavaScript knowledge (and don't know what ES6 means). ExtendScript doesn't accept let as reserved word. Maybe something about this ES6 you're…
3
votes
1 answer

How do I pass an object to Adobe ExtendScript from Javascript (Adobe CEP)?

I'm working with Adobe CEP (it lets developers create windowed extensions for Adobe CC products). The bulk of my code is modern JavaScript (the platform uses Chromium 57, Node.js 7.7.4). However, in order to access the DOM, I need to write some…
Jason Weinzierl
  • 342
  • 1
  • 6
  • 12
3
votes
2 answers

Adobe InDesign CS5 Scripting - Object does not support the property or method 'resolution'

Ok upgraded to CS5 and now this is not supported: app.jpegExportPreferences.resolution = 350; Question is how to specify resolution in CS5 since this worked in CS4?
jmituzas
  • 593
  • 3
  • 14
  • 28
3
votes
2 answers

How to get eslint to validate Adobe Extendscript (.jsx) files in VSCode

I'm trying to write extendscript scripts for Adobe After Effects, using VSCode. I'd like to get some linting happening (not too fussed if it's ESLint or any other linter), but I can't convince ESLint to lint my files. Extendscript is a dialect of…
stib
  • 3,346
  • 2
  • 30
  • 38