Page 1 of 1

sim [model] -c -d -w window

Posted: Sun Jul 06, 2025 2:46 am
by aliakhavan89
As someone who goes back and forth between different inputs and datasets when working on a model, I appreciate the fact that this message pops up every time I run the model. In this way, I can make sure that I've run what I intended to do. But the window management is done so poorly, and it has been an issue for a long time.
Screenshot 2025-07-05 at 10.15.53 PM.png
Screenshot 2025-07-05 at 10.15.53 PM.png (971.68 KiB) Viewed 7257 times
First, the window is inactive after it pops up. So if I press cmd + m or cmd + w, the action is applied to the main window and all the information remain there fully stuck to the front.

Second, if you click on the sim info window and activate it, cmd + w closes the model in the main window (!) and leaves these tiny windows open, and cmd + m minimizes the simulation information window without touching the model window.
Screenshot 2025-07-05 at 10.41.02 PM.png
Screenshot 2025-07-05 at 10.41.02 PM.png (1.13 MiB) Viewed 7257 times
Third, there is no way of getting rid of these unless one manually closes them with a mouse click. No other option is available to deal with them (except using multiple displays/monitors).

As I said, while I appreciate that Vensim provides this important information about the simulation configuration, I think there should be a systematic way to manage these windows in a more efficient way. Thanks a lot for considering this feedback.

Re: sim [mode] -c -d -w window

Posted: Sun Jul 06, 2025 2:52 am
by aliakhavan89
They're so sticky that none of these work
Screenshot 2025-07-05 at 10.48.43 PM.png
Screenshot 2025-07-05 at 10.48.43 PM.png (641.29 KiB) Viewed 7255 times
Screenshot 2025-07-05 at 10.49.01 PM.png
Screenshot 2025-07-05 at 10.49.01 PM.png (443.06 KiB) Viewed 7255 times

Re: sim [model] -c -d -w window

Posted: Sun Jul 06, 2025 4:06 pm
by aliakhavan89
ChatGPT helped me write a helper to use Accessibility “AXObserver” API to receive window-created notifications so that whenever this window pops up the OS automatically minimizes it. it's a swift app that you can compile with terminal command line tool and run it in the background, which uses less than 0.1% cpu:
Screenshot 2025-07-06 at 11.53.02 AM.png
Screenshot 2025-07-06 at 11.53.02 AM.png (1.5 MiB) Viewed 7201 times
Screenshot 2025-07-06 at 11.53.05 AM.png
Screenshot 2025-07-06 at 11.53.05 AM.png (1.33 MiB) Viewed 7201 times
Screenshot 2025-07-06 at 11.52.55 AM.png
Screenshot 2025-07-06 at 11.52.55 AM.png (1.15 MiB) Viewed 7201 times

Re: sim [model] -c -d -w window

Posted: Sun Jul 06, 2025 4:08 pm
by aliakhavan89
Here's the code in case anyone needs it. You can modify it to open in the background whenever Vensim is open or you should manually open it whenever you're working with workflows like mine. Again, it needs to be compiled to get an executable binary (took me only a few minutes to implement the whole thing so I thought I share this with others).
MinimiseSim.swift.zip
(1.38 KiB) Downloaded 12 times
Also, the app minimizes any Vensim related window that starts with 'sim ', which is a characteristic of those simulation windows. I guess it won't minimize the models even if they start with 'sim' because those windows start with 'Vensim'
Screenshot 2025-07-06 at 11.13.27 AM.png
Screenshot 2025-07-06 at 11.13.27 AM.png (126.26 KiB) Viewed 7199 times