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

Acrobat's "This file is already open" message

This is a really strange one. Our company has has an InDesign script that, near the end, calls Acrobat (by way of Applescript) to open a PDF file, replace a page in it, then save the file and close it. We've been using this script for over a year…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

read file to bytearray adobe extendscript

Is there a way to read a file in adobe extendscript to bytearray? I will upload the bytes to a rest server. Currently, i'm using below and it is giving me binary string. var s = file.read();
Petrick Lim
  • 287
  • 4
  • 13
0
votes
1 answer

Right to left dialog/pallete/windows in Extendscript for Adobe InDesign

I need a right to left Window (is a object in ScriptUI). In C#, a form has tow properties RightToLeft and RightToLeft layout that create a right to left form. How can I do this in Extendscript?
Iman
  • 424
  • 5
  • 18
0
votes
1 answer

Copy a text frame from one Indesign File to another and then compare there properties without specifying any specifically

I have the following scenario. I have to copy a page item into a new Indesign document and then compare all the properties and write the ones that are not equal into a log file. I'm using the following code: var textFramesCollection = new…
y suri
  • 21
  • 5
0
votes
1 answer

Displaying custom XMP Metadata in Adobe After Effects `Metadata` panel

With some ExtendScript, I'm adding custom XMP Metadata to an Adobe After Effects project file using the excellent code found in this thread over on the Adobe Forums. I have verified that the metadata is being written to my project file as my script…
ariestav
  • 2,799
  • 4
  • 28
  • 56
0
votes
3 answers

Can I access Mask>Mask Path>Shape>BoundingBox properties via Extenscript?

I am wondering if there's a way to access the Bounding Box Gui properties of mask shapes so that I can see how to create perfect circle shape masks in After Effects? My code is below: maskpath = app.project.item(1).layer("Orange Solid…
Felice
  • 571
  • 1
  • 7
  • 22
0
votes
1 answer

upload to ftp folder with indesign script

I am using indesign CC 2014 I have embedded "FTPConnection.jsx" that "Peter Torpey" wrote. then I wrote these codes to upload files to my server. Everything works fine, however files do not open correctly. I tried to open them with Notepad++ and I…
0
votes
1 answer

How to change the window panel title size?

I have created a script with a gui Window with groups and panels. My issue is when I fire the script either from After Effects or from the Extendscript Debugger, I can't see the whole title on my panel title. Below is a link to the image…
Felice
  • 571
  • 1
  • 7
  • 22
0
votes
1 answer

Why is the Item Position messed up after override?

The Situation: My Script creates a weekplanner with the masterpage as template. What's happening in the script is: Create Page Apply Masterpage Override each item Change content of each item do this for the whole dates-array length The…
der-lukas
  • 936
  • 9
  • 13
0
votes
1 answer

Use Date Library in Extendscript (Javascript)

I'm new to Indesign Scripting, but I'm working on an InDesign CC Script, where I would need to work a lot with date-functions. I wanted to know if it's possible to import a JS Library like date.js or moment.js in Extendscript for that matter? Cheers
der-lukas
  • 936
  • 9
  • 13
0
votes
2 answers

Can't set the value of textItem.contents

I am trying to write a script that will update the value of a text layer in Photoshop. I have a layer stored in a variable myLayer which I log out so I know it is an ArtLayer with a type of LayerKind.TEXT and has a textItem object associated that…
popClingwrap
  • 3,919
  • 5
  • 26
  • 44
0
votes
1 answer

Extendscript: how to skip current iteration in a for loop?

I have the following code, written in ExtendScript to process a series of layers in an After Effects composition: for (var i=0; i < selectedLayers.length; i++) { var layer = selectedLayers[i]; if (!layer.hasVideo ||…
PaulJ
  • 1,646
  • 5
  • 33
  • 52
0
votes
2 answers

Running extendscript (.jsx) launches ExtendscriptToolkit

I have written a couple of simple .JSX scripts that automate some common monkeywork I do in Photoshop. I wrote the scripts in ExtendScriptToolkit and then execute them with File > Scripts > Browse and select the script I want. This runs the script…
popClingwrap
  • 3,919
  • 5
  • 26
  • 44
0
votes
1 answer

How to migrate SWF plugin panel for InDesign CS4 to InDesign CC2014?

I'm trying to migrate some legacy code for a patch panel written in Flex / Flash for InDesign to work in CC2014. Currently, it is falling over as there is a var "InDesign" that was previously set but is no longer set. EG: In order to get a reference…
0
votes
1 answer

InDesign: Delete Document Dictionary

I am having trouble deleting a document dictionary in InDesign CS 5.5. I can clear the contents of a user dictionary using this script: var myUserDictionaries = app.userDictionaries; var myCountDict = myUserDictionaries.count(); for (var i =…
Nathan
  • 1,483
  • 3
  • 18
  • 41