Script failing ... strangely
Instructions:
- Load Script.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Run the script
- Observe that the script gives an error on line 6 (Invalid object for this request.) This is because TextFrame281 and TextFrame284 are the same object. They should be different objects.
To see this more clearly:
- Load script.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Uncomment line 4 (var temp = TextFrame_281.id)
- Run the script
- The script runs fine. If you look in the document that has been created, the two text frames are in the upper right corner and they are linked to each other.
In other words, the value of TextFrame_281 changes, depending on whether it is accessed. My only guess is that this is some kind of lazy evaluation gone wrong.
1
vote
Bev
shared this idea