Using Javascript library in Extended Script IDE
Copy link to clipboard
Copied
Hi,
I am wondering if i can use java script library availabe on many sites in Extended Script IDE for easy UI design and make it more interesting.
Is there anything that we can all as a header file or give a path to access through and we can use them in our scripting for UI?
Copy link to clipboard
Copied
Inside the ExtendScript SDK folder there is a JavaScript Tools Guide CS6.pdf that shows ExtendScript UI info.
PC:
c:\Program Files (x86)\Adobe\Adobe Utilities - CS6\ExtendScript Toolkit CS6\SDK\
MAC:
"your main hd"/Applications/Utilities/Adobe Utilities - CS6/ExtendScript Toolkit CS6/SDK/
Copy link to clipboard
Copied
Thanks David, but still have lots of issues with it. I didn't find the way sytax used in treditional JAVAscript and in AF ExtendedScript IDE.
for example, in Javascript there is in built function called "count", i was trying to use it here...it just erroring out.
Is there anyway that we can know or have some docs that discribes syntax differnce in regular JAVAscript and in AF ExtendedScript IDE?
another example :
In Java
var a = w.add("edittext",undefined,"Hello");
var b = a.value;
alert(b);
this will return you "Hello"
now in AF ExtendedScript IDE, its different
var a = w.add("edittext",undefined,"Hello");
var b = a.text; /* Thanks to ALAN_AEDScript */
alert(b);
now this will return you "Hello"
So this way its really make me stuck to get anything done. If you can help me out for this, it will be great.
Thanks,
Sj,
Copy link to clipboard
Copied
In the CS6 Scripting guide pdf they mention what version of Javascript ExtendScript is based on. This may help you narrow down the Javascript specific stuff.
On pg. 3 of ADOBE® AFTER EFFECTS® CS6 SCRIPTING GUIDE:
After Effects scripts use the Adobe ExtendScript language, which is an extended form of JavaScript used by several Adobe applications, including Photoshop, Illustrator, and InDesign. ExtendScript implements the JavaScript language according to the ECMA-262 specification. The After Effects scripting engine supports the 3rd Edition of the ECMA-262 Standard, including its notational and lexical conventions, types, objects, expres- sions, and statements. ExtendScript also implements the E4X ECMA-357 specification, which defines access to data in XML format.
On pg 108 of JavaScript Tools Guide CS6 pdf they have a chart that show what properties each control element has. ".text" being one of them. It's pretty straight forward how they show it.

