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

Get composition by its name in after effects project using extend script

I am working on After Effects scripts and using AE scripting guide as a base of learning. I have one After Effect project which includes two AE projects in it and each of the project having multiple items in it. I want to fetch the composition…
Pooja
  • 61
  • 1
  • 4
5
votes
1 answer

How to Change Default Path of File Open Dialog?

I'm writing a script that allows me to do some basic imposition within InDesign CS3, and one of my tasks is to open a dialog allowing the user to select a file to place. I'm currently doing this with: var file = File.openDialog("Choose a…
Kevin Coppock
  • 133,643
  • 45
  • 263
  • 274
5
votes
2 answers

Adobe InDesign .jsx script execute .jsx script

How can I have my .jsx script when finished execute another .jsx script? Maybe this will help understand what I am trying to do: // WebCard.jsx file function mySnippet(){ // var myPageName, myFilePath, myFile; var myDocument =…
jmituzas
  • 593
  • 3
  • 14
  • 28
5
votes
2 answers

Unit Testing for Extendscript

Need some guidance on automating unit testing for Extendscript..anyone have any experience running and writing unit tests on Adobe Extendscript jsx files with Grunt, Mocha, Chai, etc ?
5
votes
0 answers

create guides in an After Effects comp window using extendscript

I want to write a script that puts guides at a layer's current position in the comp window. I've looked through the AE Scripting Guide but can't find any reference to guides. It's the kind of thing that should be doable, but is it?
stib
  • 3,346
  • 2
  • 30
  • 38
5
votes
1 answer

Place SVG in Illustrator

I'm trying to place an svg in illustrator using extendscript. Here's basically what I'm doing var doc = app.documents.add(); var p = doc.placedItems.add(); p.file = new File(svgfilepath); This fails with the error File is in a format that cannot…
Yawar
  • 335
  • 1
  • 9
5
votes
1 answer

Sonar analysis for ExtendScript(JSX) files

I have a list of files with .jsx extension which needs to be analyzed with Sonar. No plugin is available in Sonarqube for the same. Can anything be done to the existing JavaScript Sonar plugin to analyze .jsx files. Anyone?
Upen
  • 1,388
  • 1
  • 22
  • 49
5
votes
1 answer

How do I loop through all compositions in an After Effects project?

How does one loop through all the compositions in the currently opened After Effects project?
Tamás Barta
  • 1,617
  • 1
  • 19
  • 23
5
votes
1 answer

Is there a way to copy only the speed graph of a property in After Effects and apply it to another layer?

In After Effects, a lot of my time is spent in the graph editor, and a lot of the motion I create is similar. I've used Ease and Wizz to use expressions to duplicate easing motion between layers, but sometimes the motion I'm working on is unsuitable…
Space Age Crystal
  • 394
  • 1
  • 2
  • 13
4
votes
1 answer

Debug jsfl in ExtendScript for Flash CS5

This is a total noob question, but I'm trying to figure out how I can debug some JSFL that I created, stepping through it as the code runs on a Flash CS5 file. The DEBUG menu dropdown in ExtendScript has "run" grayed out... If I double click the…
clockworked247
  • 347
  • 3
  • 13
4
votes
0 answers

How to Process HTTP Response to Obtain Image Content

I'm trying to integrate a web service that serves PNG images into Photoshop using JSX/ExtendScript. To accomplish this, I create a Socket (TCP) and write the user configurable parameters in the GET request. The server then returns an HTTP response,…
merv
  • 67,214
  • 13
  • 180
  • 245
4
votes
3 answers

How do I get the position of the selected Illustrator PathItem in pixels using?

I have a simple problem, but can't seem to find my way around it: I have PathItem and Illustrator points out that it is at position (781px,250px). How can I get those values in jsx ? I've noticed that the PathItem inherits the position property from…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
4
votes
2 answers

How to Group all Objects on a document in Illustrator CC with Javascript?

How to Group all Objects on a document in Illustrator CC with Javascript? I try to make a script and I need to group all the objects in the document without errors and correctly. In the official guideline I did not find such a function. The code…
Max_Pro
  • 101
  • 1
  • 10
4
votes
2 answers

Is it possible to save arbitrary data in SVG on export?

I have an Illustrator file with upwards of 50 groups on one layer and one artboard. The groups are laid out like tiles in the file. The idea is that we export each tile individually and reassemble on the front-end of the site. In order to do that I…
Brandon Durham
  • 7,096
  • 13
  • 64
  • 101
4
votes
5 answers

How to execute an InDesign extendscript from command line?

I need to execute a .jsx script for InDesign from command line (Windows). For Illustrator, it works easily with the following command: "C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Support Files\Contents\Windows\Illustrator.exe"…
superrache
  • 650
  • 11
  • 26
1 2
3
61 62