Yeah the redefinery rd_gimmeproppath script byJeffrey R. Almasol is absolutely amazing.
I hadn’t used it before because the redefinery site only seems to include a later than CS4 version. However the older version is on github and its fine.
It resolved 99% of my After Effects object model questions apart from a few odds and ends like .guideLayer and other stuff which isn’t a property one can select in the timeline. The script has a big associative array which links UI stuff to the back end ADBE and that’s about as good a reference as anyone could want.