Is there a way that a script running in one instance of MoI can determine what files are open in all other running instances? Like getting moi.geometryDatabase.currentFileName from each of the other instances?
How about switching windows using a script? Can I get a script running in one instance to switch to the window of another instance?
The situation is that the way I have things set up now it's possible to open a given file in multiple instances of MoI, but I want it to act like the native behavior where if a file is already open in an instance of MoI then instead of launching a second duplicate instance with that same file open, instead I want the window where that file is open to get switched to.
For example, on macOS there's a Window button in the top toolbar that lists all the open windows with a checkmark next to the one that is in front. I want a startup script to get the list of files shown under Window and to move the checkmark to a different file if some conditions are met.
- Peer
|