Hi I am trying to make a layer select by targeting it... and for whatever reason coding doesn't seem to work at all for that.
More of a superficial selection, not 'targeting' in reality
this stuff in the documentation has me a little scared too.
If I select by hand and run the flatten transparency code, it works totally fine. If I let the code do the selecting and flattening it doesn't flatten the layer itself -- only its contents (which is no good because I have stroke apperance attributes on it I want flattened as well)I fear code is doing more of a 'soft select' ... which I can simulate by hand too if I do target just merely highlight the layer with a selection.


I need for this to happen with code, no human interventions -- no hands on approach.
Is there something I am missing?? Some term or soemthing.
Just seems like in the year 2019, we should be able to programatically target a selection (like by hand thru the GUI behaves)
If anyone has feedback on this specific issue, it would be a HUGE hep -- currently going nuts as this is not working.
simulating a mouse click or something just seems goofy to me and not very practical.
Thanks for taking the time to read this,
-Ryan