title: Getting Selected Layer or group layers array using javascript (Photoshop CS4)
body: <p>K basically I need to write a photoshop script that iterates through the selected layers and retrieve some information about them.</p>
  
  <p>if I can get an array of the selected layers I will be fine, I know how to do the rest, but getting that array is been a headache on its own.</p>
  
  <p>I know the document holds something like "activeLayers" but I get lost how to deal with levels and sublevel layers.</p>
  
  <p>All the layers are in a group, so if its easier, if I can get every layer in a group that would be great too :D</p>
  
  <p>Thanks for any tips on this.</p>