Mac tip: Booting Safe-Mode clears the window sizes and positions of apps

Mac Safe-Mode clears window size and window positions

I recently came across a tip that could be helpful here and there. The point is that sometimes the windows of an app are placed on the screen in such a way that you can no longer reach a corner to align them so that they can be adjusted to the screen again.

This happened to me here and there when I operated a MacBook Pro with a second monitor and the next time I started the monitor the monitor was no longer attached, but windows that were previously on the second monitor were somehow repositioned.

In very unfortunate cases they were distributed in such a way that I couldn't get a point to touch in order to be able to move them. I just saw a strip of the window at the edge of my display, but I couldn't get hold of it with the mouse. In this case you stand there stupid and may have to get a second monitor again to be able to move the window.

With a safe restart, the Mac deletes all window sizes and positions saved by programs (Photo: Sir Apfelot).
With a safe restart, the Mac deletes all window sizes and positions saved by programs (Photo: Sir Apfelot).

Restart in safe mode and the apps forget window positions

On Apple support page I found a tip that is much easier to implement here:

  1. Restart your Mac and hold down the SHIFT key
  2. dann the Mac boots in safe mode
  3. the apps then forget all the windows that were saved when the app was last closed
  4. then you boot the Mac again "normally"

No help with "forgetful" apps

One thing that Safe Mode doesn't help with at boot is "Window amnesia“As I recently called it in a post.

The following happens: You open an app, adjust the size and position of its window as you need it. At some point you close the app and assume that all windows are positioned as they were when you left the app. Unfortunately, this is not the case and the app places the windows as if you were opening them for the first time.

The only thing that really helps here is the appropriate one plist file of the app to the Trash so the Mac creates a new one. But more details in this article described.

Did you like the article and did the instructions on the blog help you? Then I would be happy if you the blog via a Steady Membership would support.

5 Responses to “Mac Tip: Booting Safe Mode clears app window sizes and positions”

  1. The plist files are in the cache. Therefore, deleting it does not do anything. The user has to log out and log in again. An alternative is the Prefs Editor by Thomas Tempelmann, who can zap the information in the plist. With this you could only remove individual values ​​from the plist.

    Modern apps have "merge all windows" to recapture the escaped sheep. The problem occurs again and again when using two monitors.

    The English spam test looks like a misconfiguration.

    1. Hello Beatrice! Thanks for the information. I'll take a look at the Prefs Editor. But it's definitely good advice. And "Merge All Windows" is nice when it's available. But unfortunately I have had the case several times that the app did not offer the option. Re. Spam test: I'll take a look. Maybe the plugin got an update and forgot the language. Anyway, I can't adjust anything. :( Maybe it's time for another plugin... let's see what's out there. Anyway, thanks for the tip. I don't look at the SPAm test. A tip like this helps. :D

      1. Hi Jens,

        Here is a small AppleScript that centers the current window and, if necessary, reduces it to the screen if it is too big for it:

        ----------

        tell application “Finder”
        set screen Resolution to bounds of window of desktop
        set screenWidth to item 3 of screenResolution
        set screenHeight to item 4 of screenResolution
        end tell

        tell application “System Events”
        tell (first application process whose frontmost is true)
        set theSize to size of window 1
        set windowWidth to item 1 of theSize
        set window height to item 2 of the size
        if (screenWidth - windowWidth) <40 or (screenHeight - windowHeight) <40 then
        if (screenWidth - windowWidth) <40 then
        set windowWidth to screenWidth - 40
        end if
        if (screenHeight - windowHeight) <40 then
        set windowHeight to screenHeight - 40
        end if
        set the size of window 1 to {windowWidth, windowHeight}
        end if
        set the position of window 1 to {(screenWidth - windowWidth) / 2.0, (screenHeight - windowHeight) / 2.0}
        end tell
        end tell

        ----------

        Application:

        Either you activate the script menu (in the script editor) and put it in the user's script folder. You can then call it up in all applications via the menu bar.

        Or you can use it to build an Automator service and assign a shotcut for it or call it up from the "Services" menu.

        Alternatively, you can also insert a "delay 10" at the beginning of the script and start it in the script editor if necessary. Then you have 10 seconds to switch to the problematic window.

        PS: Also works with Coherence (Windows) windows.

        Regards
        Dirk

        1. Hello Dirk! Thanks you for the script. That's practical. :D I hope it's displayed correctly here, otherwise I'll have to send it to the forum. It often works better because Wordpress likes to “revise” lines of code.

  2. Well at least it can be copied and will be correctly translated after pasting in the Script Editor. Sometimes the line breaks disappear and the “” become “”. But that's not the case.

Post a comment

Your e-mail address will not be published. Required fields are marked with * marked

In the Sir Apfelot Blog you will find advice, instructions and reviews on Apple products such as the iPhone, iPad, Apple Watch, AirPods, iMac, Mac Pro, Mac Mini and Mac Studio.