New Window problem
- posted February 28, 2012 by PhilModJunk
I predict that you are using this on a windows platform, not a Mac as Mac's do not have this annoying issue. I further predict that your windows were maximized when you ran this script. With maximized windows, opening a new window automatically resizes the original window to a previously used set of window dimensions which can minimize and/or move your window to the point were it is no longer visible.
If I am right, you have two options:
1) Don't maximize your windows. I don't like this approach myself as I don't like the window inside a window mess you get, but your windows will open and close without the original window changing size or location on you.
2) Add a move resize window step to your script after the new window command that resizes the original window back to a size you want. I use get functions to resize the original window out as close to the original maximized size as I can. This results in a "twitch" to the original window I'd prefer to do without, but it keeps it visible and minimizes the size/position change of the original window. Note that after closing this new window, you need to run a script that returns your windows to their maximized state. I use a custom menu for this so that clicking the close window control in the corner of the window, using the keyboard short cut or selecting the option from the file menu run a script that closes the window and then maximizes the remaining windows. Any buttons that close this window also perform this same script.