Sorry for the late and thank you for your answer, this is interesting but not really what I looking for.
Suppose you are using the layer panel, you have the possibility to filter the kind of layers you want (type, effects, blend mode etc..) with photoshop cs6.
When you program a script for this, it doesn't save the filter..
Do you have a solution about this ?
Maybe it will be resolved with the next update of the software.
I an still unclear on what you are after, the filter in CS6 is just that it does not select the layers, you still need to do that manually.
This is what I looking for :
1 - In the layer panel, I show the kind of layers I want, for example only smart objects and not others :
(I use the french version)
2 - Now only smarts objects are displayed, then I select all the smart objects :
3 - I apply some modifications to the smarts objects (example : opacity 50% )
I woud like to save the manipulation in a script, but it doesn't save the first step...
You should find the experts with Actions in the General forum
Hopefully someone could answer your question there.
If I understand what he is trying to do, I don't think it can be automated by action or script becasue setting the layer panel filter( step 1 ) is not action recordable or in the Object Model.