I actually thought about doing what you described as a workaround... although it would have taken me some time to get it right (I'm very new at this - it's the first script I've attempted).
It does seem odd that you can't access by name though. You can access layers by name, can't you? And can't you also access Comps by name through Expressions? I could've sworn I've done this in the past.
Thanks again for the code. You saved me much frustration.