I don’t have AE here but wanted to clarify that this did work:
comp(“TheSourceComp”).layer(“TextLayer”).sourceText;
There’s something missing between the layer and the sourceText property (I think there’s 2 more objects in between) so it’s not this exact expression but it’s quite close and it does solve the problem.
Thank you Darby.