I half have working what I want...
I managed to get it to work if I reference the object directly by name, but if I try to use a variable and concatenate them I can't seem to get the desired result. And I would need to do this for my idea to work.
I have an object named
Test Object with the text element set to: Testing 123
sTest=('Parent.Test Object.text')
say sTest
The above returns the proper string echoed into chat.
However the following I cannot seem to find a proper method for.
sName=('Long Item Name')
sTest=('Parent.') ## sName ## ('.text')
say sTest
The above returns:
Parent.Long Item Name.text
Have tried a few different alterations with how I concatenate them, but with no luck.
I tried setting it to another variable again like: sTest2=('sTest')
... but that did nothing new.