Collections vs. Arrays


photoshop scripting exposes collections, e.g.

 

app.documents; app.layers; 

 

in indesign scripting, these collections behave differently arrays: instance can access items index negative values (e.g. pages[-1] means last one), etc. moreover, looping through collections reported slower, build arrays out of collections , iterate on them.

 

i'm trying find out whether same hold true photoshop well, far... no proofs. i'm trying use reflection interface on collections, doesn't seem possible (document.layers, opposed document.layers[0]).

does know more topic?

thank you

 

davide barranca

damn, davide, i've never heard of collections, can't offer help, in example, wouldn't document.layers object rather array?



More discussions in Photoshop Scripting


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop