Extendscript: Select group that has locked/hidden sub objects?
Using Extendscript, how do I set the selection to be a group which contains multiple objects like paths/images/whatever where only some of them are locked/hidden?
If you select such a group in Illustrator manually, there is no problem - you can see that the group is selected just fine. But, for example, if you were to select such a group in Illustrator, then run an Extendscript with only this line:
selection = selection
You will encounter this error:
error 9063: trying to select locked or hidden artThis is obviously completely ridiculous because it is stating that you cannot select something even though it has already been selected beforehand.
This error is frustrating as it makes trying to set the selection of groups nearly impossible most of the time, thus disrupting my ability to write useful scripts. Is there a way around this problem? Thanks!
