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

nodejs execsync command failed

I am trying to run a execSync file: try { const child_process = require("child_process") child_process.execSync('"C:/Program Files/Adobe/Adobe Photoshop CC 2019/Photoshop.exe" Z:/myfile.jsx', (err, stdout, stderr) => { if (err) { …
madha kumar
  • 139
  • 2
  • 13
2
votes
1 answer

sourceText value through script

Any idea why below two lines are not being executed in After Effects? In first line, I simply want to show source text value through an alert. In second line, I want to select layer number with index value of…
SmIqbal
  • 99
  • 1
  • 13
2
votes
1 answer

Stuck trying to reference value from text input in JavaScript function

I am trying to create a plugin for Photoshop. My file structure is as follows (as recommended in Adobe's guidelines on building plugins): My root folder contains two folders: client and host. The client folder contains index.html and…
Josef Holmes
  • 151
  • 2
  • 12
2
votes
1 answer

How to set individual font color using extendscript

I have created a paragraph text in after effects using Extendscript For example i have a text "HI". I need to give color for "H" as red [1,0,0] and "I" as green [0,1,0]. I have checked everywhere ,. where i can find out that i can change the text…
madha kumar
  • 139
  • 2
  • 13
2
votes
0 answers

Photoshop JS Error: General Photoshop error occurred. This functionality may not be available in this version of Photoshop

I am getting a "General Photoshop error occurred. This functionality may not be available in this version of Photoshop." error when I run the following code: var watermarklineGroup = app.activeDocument.layerSets.getByName('WATERMARK.LINE'); var…
Kenny J
  • 21
  • 3
2
votes
2 answers

Extendscript Debugging Arrays

My first question so be gentle... Using Adobe Extendscript Toolkit CS6 3.8.0.12 to make a few scripts. Trying to see contents of an array in the Data Browser, specifically a pathItem in the pathItems array. Can't seem to find a way to examine the…
S Larkin
  • 21
  • 1
2
votes
1 answer

Importing images as a sequence in Adobe Premiere Pro using extendscript

So I've been looking around and trying to find a way of importing image sequences in Adobe Premiere Pro using extendscript. I can import separate single files using: app.project.importFiles(new Folder(folder_path)); But I can't give an option of…
Nom
  • 41
  • 3
2
votes
1 answer

In InDesign CC 2017 javascript, when using the eventListener "afterOpen", how can I avoid the warning, "No documents are open."?

I'm using InDesign CC 2017 with Mac OS X El Capitan, and want to use a script in my Startup Scripts folder to always perform a check each time I open a file for a certain string in the filePath of that file. If the string is found in the filePath, I…
2
votes
1 answer

Add a ExtendScript to a button in Indesign

Well the title pretty much explains the problem. I have a InDesign document containing buttons. One of the buttons should go back to the page the user comes from (previous page). So I want to create a var containing the value of the pagenumber on…
Interactive
  • 1,474
  • 5
  • 25
  • 57
2
votes
2 answers

Accessing inside precomposed layer with ExtendScript

I am very new to extendScript. I have an After Effects project and I am trying to access an item in my composition then go to inside it to select one layer inside it. So it goes like: I have 5 layers in my composition and inside 3rd item, when I…
senty
  • 12,385
  • 28
  • 130
  • 260
2
votes
2 answers

Passing the result of a python script to an ExtendScript `.jsx` file

So, I'm writing a python script that gets data from a google sheet and returns it back to an ExtendScript script that I'm writing for After Effects. The relevant bits are : getSpreadsheetData.py def main(): values =…
2
votes
2 answers

How to split layer in After Effects using marker of markers and javascript, extendscript?

I am trying to split layer in After Effects using extendscript. First of all, i want get the time value of the marker. Then i want set the Timeline cursor on necessary point on the Timeline. And finally i'll split layer to pieces. How did this in…
Max_Pro
  • 101
  • 1
  • 10
2
votes
1 answer

Change duration of layer in composition by the javascript in after effects

Can anybody help me? I am trying to write a script for after effects CC using Extendscript. I want change duration of layer in composition by the javascript. I wrote this code here app.project.item(1).layer(1).length =…
Max_Pro
  • 101
  • 1
  • 10
2
votes
2 answers

Can't invoke menu items in InDesign CC script

I can't invoke menu items in scripts. For example: app.menuActions.item("$ID/Override All Master Page Items").invoke; app.menuActions.item("$Override All Master Page…
tmgr
  • 123
  • 1
  • 7
2
votes
0 answers

How do I get a debugging engine for Photoshop?

I am getting the following error launching a script from ESTK: Cannot execute script. Target Adobe Photoshop CC 2015.5 provides no engine for debugging. I have also posted this question on the Adobe forums. I have been working on the script for…
dval
  • 368
  • 5
  • 14