I've seen a very little bit of this topic in the forums but with no real resolution it seems? Like many others, whenever I open a file, Layers are randomly expanded in the Layers palette, very frustrating and time consuming to deal with.
Is there a way to run a script that collapses and/or expands all layers?
Thanks so much!
sorry but no, not possible with scripting,
just note that the expanding is not random, you'll layers will expand if you have sublayers.
thanks for adding the "just note..." comment. a simple AI behavior i was not aware of! been working in these files for years and never had an issue until someone else starting helping out. it never occurred to me that he was making sublayers and thus it never occurred to me that this could even be the issue.
yeah, that's what happen when someone else "helps" you..if auto-expanding is driving you crazy try avoiding sublayers and if not possible...try maybe using groups instead of sublayers (to keep things organized), but it will be harder to tell them appart in the Layers panel, those are the only options I can think of