Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Using Javascript library in Extended Script IDE

New Here ,
May 21, 2013 May 21, 2013

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?

TOPICS
Scripting
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 21, 2013 May 21, 2013

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/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 22, 2013 May 22, 2013

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,

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 22, 2013 May 22, 2013
LATEST

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.

http://www.sydefxink.com/CommonPropertiesChart.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines