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
Post a Comment