Inactive Tutor answered 07/10/19
Tutor
New to Wyzant
InDesign 'objects' are not normal JavaScript objects. You cannot just stuff your own properties into them.
You would undoubtedly get a more complete answer if you post the question to the Adobe InDesign Scripting Forum.