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

Add imported files into sequences using Premiere Pro's ExtendScript connection

I'm trying to create a script in ExtendScript for Premiere Pro that will load-in specified video files, clip them at specified start and stop times, place them into a sequence and then export the resulting movie. I understand that Adobe doesn't have…
adara
  • 1,871
  • 1
  • 12
  • 6
48
votes
4 answers

"Console.log" with Photoshop Scripting - ExtendedScript Toolkit

I'm doing a bit of Photoshop scripting for the first time and it sure would be great to have a console.log-like function to output array and object values in the Javascript console of the ExtendScript Toolkit App. Is there an equivalent function?
Sebastien
  • 2,607
  • 9
  • 30
  • 40
33
votes
7 answers

Is it possible to execute JSX scripts from outside ExtendScript?

Typically when you're writing a .jsx script to automate an Adobe product (like InDesign, Illustrator or Photoshop), you write, debug and execute the script from the ExtendScript IDE. Is it possible to bypass ExtendScript and run the script from a…
Thomas
  • 5,736
  • 8
  • 44
  • 67
21
votes
5 answers

Extendscript current script path

I want to get the absolute folder path of current running Extendscript. i.e __DIR__ in php (or) __dirname in nodejs. Equivalent in Extendscript.
Alagu
  • 2,864
  • 3
  • 26
  • 40
17
votes
1 answer

Stitch images and data from coupled microscopy/spectroscopy into panoramic in Photoshop or R

I have a set of images and X-ray data generated from coupled scanning electron microscopy and energy dispersive spectroscopy. Here's my problem: I imaged transects of a rock surface like this (purple box outlines transect region): I wanted really…
Caitlin
  • 505
  • 2
  • 14
15
votes
3 answers

Is there an equivalent of setTimeout in Adobe's ExtendScript

Javascript's setTimeout function is a method of the window object. This object doesn't exist in ExtendScript and is therefore not available to scripts made for Adobe InDesign or Illustrator. What can I use instead to acheive the same results?
Shawn
  • 10,931
  • 18
  • 81
  • 126
13
votes
2 answers

Adobe ExtendScript development - How different than regular JavaScript?

Question I'm wondering how different ExtendScript is from JavaScript? Could I theoretically hire a web developer who has JavaScript savvy to develop it without demanding an excessive amount of learning on their part? Overview I'm working on a media…
Martin Lussier
  • 437
  • 4
  • 12
13
votes
1 answer

After Effects / ExtendScript: Using libraries and importing .jsx files?

I am new to After Effects scripting but have much experience with JavaScript in the browser. How do I import .jsx files? Can I use js libraries such as underscore.js etc? What are some good resources for AE scripting? (Ideally infographics…
dani
  • 4,880
  • 8
  • 55
  • 95
12
votes
3 answers

Extendscript Toolkit debugger fails: Can't start debug session

Not a programming problem per se, but rather a programming environment problem that I have been unable to find a solution to. The problem relates to Adobe's Extendscript Toolkit (both 3.5 and 4), but so far I haven't been able to solve the problem,…
Bornhall
  • 173
  • 2
  • 8
11
votes
6 answers

Is Adobe Media Encoder scriptable with ExtendScript?

Is Adobe Media Encoder (AME) Scriptable? I've heard people mention it was "officially scriptable" but I can't find any reference to its scriptable object set. Has anyone had any experience scripting AME?
user122299
10
votes
2 answers

Need to JSON stringify an object in ExtendScript

I am working on processing meta data information of my Indesign document links, using ExtentdScript. I want to convert the object to string using JSON.stringify but when I use it, I am getting error saying: can't execute script in target…
Madasu K
  • 1,813
  • 2
  • 38
  • 72
10
votes
2 answers

Which ECMAScript standards comply Adobe's ExtendScript implementation? (if any)

I'm a JavaScript developer, who has just begun to dive into Adobe's ExtendScript technology, aiming to improve productivity and workflow on many of my enterprise's daily tasks on Illustrator PDF form generation. In first instance I thought it was an…
Áxel Costas Pena
  • 5,886
  • 6
  • 28
  • 59
10
votes
1 answer

What is the difference between app.doScript and $.evalFile?

The only difference I have found so far: If a script that is run by app.doScript returns an error, the file and line number of the error are overridden by the file and line number of the app.doScript call. Are there any other differences I should…
dln385
  • 11,630
  • 12
  • 48
  • 58
9
votes
1 answer

Need an Illustrator JavaScript script to toggle three settings at once and keep them synchronized

I often work with icons and need to quickly check how they look with pixel preview. When I'm building them I have the grid enabled, and artboards visible. I really want a script that will do the following in one click: Hide Artboards Hide all…
fmotion1
  • 237
  • 4
  • 12
9
votes
5 answers

Getting the stack trace of an error in ExtendScript

When I catch an error in ExtendScript, I would like to be able to log its stack trace. It appears that errors do not contain stack traces in ExtendScript, so I'm playing around with the idea of adding stack traces to errors. The only way I know of…
dln385
  • 11,630
  • 12
  • 48
  • 58
1
2 3
61 62