Unless there's been a fairly dramatic change to the scripting API then it's not possible. You have no useful access to the layer stack or tools via script
Designer can be a bit dangerous in the wrong hands in my experience. It's not at all uncommon for improperly trained users to leave source data unusable for the next person and equally common for them to break something that is used by several other people- understanding dependencies seemingly isn't something that comes…
While speaking Layer Filtering, anyone know a script or a method to convert all filtering from a project, from Bilinear Filtering to Bilinear Sharp, or vice-versa ? Thanks.