2我在Photoshop和Illustrator中尝试了一下JSX。有文档和帮助下的ObjectModel很方便,但是当我尝试在Soundbooth中使用时,我发现没有文档,这就是我发现$.writeln()的原因,$似乎是一个引用,指向你连接到的任何应用程序(Photoshop、Illustrator等),否则它指向ExtendScript本身,我不确定。为了好玩,请尝试以下代码:$.writeln(inspect($));
function inspect(o){
var result = '';
for(var i in o) result += i + ': ' + o[i]+'\n';
return result;
} - George Profenza