I hope somebody can help me with this…
I already know replacements for string and records with the replacement of code where I used the LNS scripting addition set property X in Y for key Z…
Now I’m using
dictDataHeaderColumnIndex’s setValue:mValue forKey:mKey
set mKeyValues to (dictDataHeaderColumnIndex’s valueForKey:(mKey)) as [record | text]
But now I’m experiencing an issue where I want to add a InDesign object reference like ‘text field id 9348 of master spread id 186 of document id 257’ to such a dictionary in the same way but I always get the error:
Can’t make «class txtf» id 9348 of «class mspr» id 186 of document id 257 of application “Adobe InDesign 2021” into the expected type.
I already tried
dictDataHeaderColumnIndex’s setObject:(object reference of mTabCandidate) forKey:mKey)
Anybody any idea?
Thanks in advance! You don’t buy a bear with that… I know