Since the CSAW API to manipulate layers etc. is pretty limited I need to work with the magic of ActionManager to achieve most of my functionality.
The problem is, there doesn't seem to be any "bridge" between those two interfaces. I can do stuff in the world of ActionManager by composing cryptic commands but I currently see no way to say "this com.adobe.photoshop.Layer (CSAW) instance belongs to this LayerID / index (ActionManager)".
If there is any way to connect these two worlds please tell me, its really frustrating that I have to write every layer manipulation with ActionManager just because there is no property "id" for the class com.adobe.photoshop.Layer!
Ok I maybe found at least a way to connect both worlds.
You have to iterate through all layers (by index) and do the following steps:
Most parts of that solution can be found in this discussion:
hope this maybe helps someone!