[Scripting] Document.findObject() incorrectly targets activeDocument
System: Indesign 18.4, MacOS 13.4.1
To reproduce:
1. Open two documents, each with a filled frame 100% tint.
2. Run attached script "findObject bug.js"
3. Note the console output.
4. Refer to this forum post for notes and commentary.
Expected result:
doc.findObject() will return found items from both open documents.
Actual result:
doc.findObject() returns only items from active document.
Note that using app.findObject() is not a viable workaround in some cases, such as the issue in this post.
4
votes
![](https://assets.uvcdn.com/pkg/admin/icons/user_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)