extendscript

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 database (or a so-called "multimedia library") project and it is based on XMP (the eXte...

database use with ExtendScript (for Adobe Illustrator)

I want to refactor a VB program into ExtendScript to automate some drawing in Adobe Illustrator CS4, but have a requirement to read from a database. Is it possible to read from a database using ExtendScript? How? ...

Adobe After effects scripting on Vista

Hi All, i have the following snippet of xml that should point to a file. <pathurl>file:///E:/P2%20Cards/16-11-08/Scenes1/Reel58/CONTENTS/VIDEO/1061MK.MXF</pathurl> and that is taken in by a script including a whole lot of other information into after effects in what is in Extendscript/javascript.. the following is the code that i...

Anyone experienced with Adobe ExtendScript?

There's a dearth of info in the supporting PDFs and on the web. I happened to come across a post in a blog that mentioned that $.write() or $.writeln() will write a string to the javascript console. Quite useful. Does anyone know if this $ object has any additional properties or methods? ...

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? ...

Javascript dialog return

Hi, I've got a javascript function that draws a dialog. I'd like to have it return the value the user specifies. The problem is, the dialog is closed when a user clicks on of two buttons, which have onClick events assigned to them. The only way I know to grab these events is by assigning functions to them, which means that a return ca...

Script to Cut Adobe Illustrator File into Tiles

I'm creating a Custom Google Map based on an image in an Adobe Illustrator file. I need to cut the file into 256px x 256px PNGs to feed into the Google Maps API. You can write scripts to automate tasks in Illustrator using ExtendScript, a modified version of JavaScript. I found one example of a script for Photoshop that makes tiles ...

Adobe InDesign JavaScript XML: How to add XML structure tags programmatically?

This code references the root XML node, adds a FirstXMLObject under it, then adds a few fields under FirstXMLObject: var myXMLroot = mydocument.xmlElements.item(0); // The root always exists var b = myXMLroot.xmlElements.add( "FirstXMLObject"); b.xmlElements.add( "Name", "Bob"); b.xmlElements.add( "Address", "1234 Sesame Lane"); Supp...

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 an third program? I think Adobe products have a built-in JavaScript interpreter which ExtendS...

Getting the geometric bounds of a piece of text

I have an InDesign document which has hyperlinks contained inside a text frame. I need a way to determine the geometric bounds of the text contained in the hyperlink. Unfortunately, I can't seem to find a way to do this in ExtendScript. // Export the hyperlinks in the document for (k = 0; k < myDocument.hyperlinks.length; k++) { /...

Extendscript Toolkit not stopping at breakpoints, why?

I am scripting Illustrator CS5 with the Extendscript Toolkit. I set several breakpoints in my code, they show up as red dots next to the line number. But when I run the script, it executes all the way to the end without stopping and the breakpoint dots turn dark. What am I missing here? Thanks! ...