i working in extendscript bridge attach labels documents excel document. parsing through excel document using js-xlsx library. running loop parse through individual cells , values, works when run command line. however, when run in extendscript getting exception keys().foreach not function. extendscript read loops differently reason? having trouble figuring out. here line giving me trouble:
var range = {s:{c:0, r:0}, e:{c:1,r:30}}; (var r = range.s.r; r <= range.e.r; ++r) { (var c = range.s.c; c <= range.e.c; ++c) { var cell_address = xls.utils.encode_cell({c:c, r:r});
extendscript, language, stuck @ ecmascript 3 – doesn't natively know object.keys()
, nor array.foreach()
. not json
.
official mention of can found in after effects scripting guide pag.3, says:
after effects scripts use adobe extendscript language, extended form of javascript used several adobe applications, including photoshop, illustrator, , indesign. extendscript implements javascript language according ecma-262 specification. after effects scripting engine supports 3rd edition of ecma-262 standard, including notational , lexical conventions, types, objects, expressions, , statements. extendscript implements e4x ecma-357 specification, defines access data in xml format.
the above not found in ps scripting guide, nor reference.
if want use es5 features, either include shims, or give extendscriptr try. extendscriptr scripting community project (no adobe involvement) should let write es5/es6 code converted es3.
Comments
Post a Comment