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

Strange scripting changes between Adobe CS6 and CC--need some workarounds

Our company has been using Adobe Creative Suite 6 up until now. We have some very long, in-depth JavaScript scripts that we use with InDesign CS6 and Illustrator CS6. We are in the process of moving from CS6 to the Creative Cloud and we've noticed…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

InDesign script: footnotes loosing their style

Ok, I know this had been already discussed here but no clear answer had been provided. I often need to import XML files into InDesign, many footnotes included. Of course, InD is not able to use tags automatically in this case. This script works well…
Honza Hejzl
  • 874
  • 8
  • 23
0
votes
2 answers

Placing an image into a currently open photoshop document (applescript)

I need to group a few images into one photoshop file and try to look for a more optimized path. I know I can use applescript to do something like this. tell application id "com.adobe.Photoshop" activate open file (CurrentImg) duplicate layer 1…
Tim Joe
  • 475
  • 8
  • 18
0
votes
1 answer

Tweaking Photoshop transform JavaScript to include scaling variable

So after looking around I finally found a something works almost as I need. I plan to use applescript to pass it variables. That said we get to the javascript. I don't know it well and still trying to pick it up. Can anyone help me add in some code…
Tim Joe
  • 475
  • 8
  • 18
0
votes
1 answer

Best way to create a color picker gui in extendscript?

I just started out scripting in javascript and my knowledge is very minimal. I have a few lines of code in which I create a solid but then I want a GUI color picker to prompt up so the user can choose the color. Here is an example below: var myComp…
Felice
  • 571
  • 1
  • 7
  • 22
0
votes
1 answer

How to check if a path fits inside of another path with Extendscript?

I've asked this question in the Adobe forums, but I haven't gotten an answer yet, I'm afraid. If this is truly impossible, then shame on Adobe for not making it possible. I need a script that will check and see if a path fits entirely within another…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

Allow all file types to be selected in Extendscript's File object openDlg() method on MacOS

I am trying to get a reference to a File object using the File.openDlg() method using Extendscript, but when I do this it only seems to allow me to select a specific file type. I want the dialog to allow me to open any type of file. When I use…
ariestav
  • 2,799
  • 4
  • 28
  • 56
0
votes
1 answer

Set page numbering in InDesign (with extendscript)

In InDesign, I can set the page numbering options to start at any number. Like this (starting at 5): Please note that this is not the same as page markers as text in the document. I need to change it in the Pages panel. My question is: How can I do…
Hburg
  • 3
  • 2
0
votes
1 answer

SVG Path Bounding Box in ExtendScript

I am truly stumped at this point. I need to get the bounding box of a path string. I cannot use RaphaelJS because it's integrated too deeply with the browser, and naturally the Illustrator Type Library doesn't include anything to help me. Where can…
0
votes
1 answer

execute menu command in illustrator with actionscript

I've seen it in Indesign but can't seem to get it to work in illustrator. If not could anyone tell me how I would group all items together on a layer run a function then ungroup them again. I'm fairlt new to this and struggle with the…
Bob Haslett
  • 961
  • 1
  • 10
  • 31
0
votes
1 answer

How to set Excel Import Preferences in InDesign CS6 using extendscript?

This seems like it should be really simple, but for some reason I can't get it to work at all. The following code has no effect whatsoever: function setExcelImportPrefs() { with(app.excelImportPreferences){ rangeName = "A1:Z300"; …
belscb
  • 1
  • 1
0
votes
3 answers

Change the color of objects with extendscript

I've had a look around and can't find anything to do this, so I think I'm probably asking the wrong question. I have a series of objects on a page in illustrator with a specific colour in RGB, say its 255 red. I want to select items with this color…
Bob Haslett
  • 961
  • 1
  • 10
  • 31
0
votes
1 answer

Adobe ExtendScript Toolkit Finding an Object’s Properties and Methods

I'm new to Adobe Scripting, and Javascripting in general, and I'm reading the guide "ADOBE INTRODUCTION TO SCRIPTING" and the "JAVASCRIPT TOOLS GUIDE". But something is bugging me. In the first one it says that to find the properties and methods of…
f.rodrigues
  • 3,499
  • 6
  • 26
  • 62
0
votes
0 answers

Calling an executable with parameters in ExtendScript

My Illustrator ExtendScript produces some XML files and I need to call an executable file WITH these files as parameters at the end of Main(). The solutions I've found have been disappointing at best. Currently my solution without parameters is…
0
votes
0 answers

Can't set Excel import preferences with Extendscript

My script is supposed to create a page in Indesign, then create a text frame on that page, and finally import an Excel spreadsheet into that text frame. It works, except that it will only import the first page of the Excel doc, regardless of how I…
PaulTong
  • 35
  • 4