sim [model] -c -d -w window

Use this forum to post Vensim related questions.
Post Reply
aliakhavan89
Senior Member
Posts: 226
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

sim [model] -c -d -w window

Post 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 6860 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 6860 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.
Last edited by aliakhavan89 on Sun Jul 06, 2025 2:52 am, edited 1 time in total.
aliakhavan89
Senior Member
Posts: 226
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

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

Post 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 6858 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 6858 times
aliakhavan89
Senior Member
Posts: 226
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

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

Post 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 6804 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 6804 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 6804 times
aliakhavan89
Senior Member
Posts: 226
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

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

Post 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 10 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 6802 times
Post Reply