I've tried "Prefs Editor" and even manually to reset the safari position to the default one, didn't succeeded at all, do you have any knowledge in reseting the Safari position?To reset the Sidebar width to the default value:
Close all Finder windows before running the command. A new window should open with the default Sidebar width. If it doesn’t, try to restart Finder.Code:defaults delete ~/Library/Preferences/com.apple.finder.plist SidebarWidth
defaults delete ~/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist "NSWindow Frame BrowserWindowFrame"
defaults delete com.apple.photos "NSWindow Frame MainWindow"
Is there a way to reset System Information's window size and position?
defaults delete com.apple.SystemProfiler "NSWindow Frame SystemProfile"
/usr/libexec/PlistBuddy -c "Print FK_DefaultListViewSettingsV2:columns:0:width" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Print FK_StandardViewSettings:ExtendedListViewSettingsV2:columns:0:width" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Print FK_StandardViewSettings:ListViewSettings:columns:name:width" ~/Library/Preferences/com.apple.finder.plist'
Is this possible with Messages? I've tried various ways so far.Photos
Code:defaults delete com.apple.photos "NSWindow Frame MainWindow"
For Music use Prefs Editor, open com.apple.Music search for window and delete windowHPos, windowHeight, windowVPos and windowWidth.
The are several values for Mail, I’ll look more into it.
For Messages:Is this possible with Messages?
defaults delete com.apple.MobileSMS "NSWindow Frame CKMessagesSceneDelegate"
Thank you. I knew it was MobileSMS but did not know the CKMessagesSceneDelegate. I appreciate it!For Messages:
Code:defaults delete com.apple.MobileSMS "NSWindow Frame CKMessagesSceneDelegate"
What about third-party applications such as Brave Browser?For Messages:
Code:defaults delete com.apple.MobileSMS "NSWindow Frame CKMessagesSceneDelegate"
You have to delete window_placement from ~/Library/Application\ Support/BraveSoftware/Brave-Browser/Default/PreferencesWhat about third-party applications such as Brave Browser? As far as I know, the only folder everything is stored in is "~/Library/Application Support/BraveSoftware" and there are no .plist files in there.
Yup, that's it. I realized after I edited my message that 'com.brave.Browser.plist" didn't have the setting. Thanks!You have to delete window_placement from ~/Library/Application\ Support/BraveSoftware/Brave-Browser/Default/Preferences
Open the Preferences file with TextEdit and delete what looks like this:
"window_placement":{"bottom":1066,"left":22,"maximized":false,"right":1506,"top":47,"work_area_bottom":2117,"work_area_left":0,"work_area_right":3840,"work_area_top":25}},
bogdanw, this is the thread I've waited years to find.For Messages:
Code:defaults delete com.apple.MobileSMS "NSWindow Frame CKMessagesSceneDelegate"
set theAPPSs to {"AppStore", "Messages", "Photos", "Safari", "System Information", "System Settings"}
set the selectedAPP to choose from list the theAPPSs with prompt "Reset window for:" default items {"AppStore"}
if selectedAPP = {"AppStore"} then
do shell script "defaults delete com.apple.AppStore 'NSWindow Frame AppStoreMainWindow'"
end if
if selectedAPP = {"Messages"} then
do shell script "defaults delete com.apple.MobileSMS 'NSWindow Frame CKMessagesSceneDelegate'"
end if
if selectedAPP = {"Photos"} then
do shell script "defaults delete com.apple.photos 'NSWindow Frame MainWindow''"
end if
if selectedAPP = {"Safari"} then
do shell script "defaults delete com.apple.Safari 'NSWindow Frame BrowserWindowFrame'"
end if
if selectedAPP = {"System Information"} then
do shell script "defaults delete com.apple.SystemProfiler 'NSWindow Frame SystemProfile'"
end if
if selectedAPP = {"System Settings"} then
do shell script "defaults delete com.apple.systempreferences 'NSWindow Frame main'"
end if
find ~/Library -type f -name '*.plist' -exec grep -E 'NSWindow ?Frame' {} +
Thanks vm! I will save and investigate. This is much appreciated.As this thread appears among the first results on Google, I suggest making the first post a wiki post and adding all the reset commands discussed here and confirmed to be working. @ProQuiz
I’m not a developer, I can’t make an app. The best I could do is put the commands in an AppleScript that could be saved as an app.
Something like this:
AppleScript:set theAPPSs to {"AppStore", "Messages", "Photos", "Safari", "System Information", "System Settings"} set the selectedAPP to choose from list the theAPPSs with prompt "Reset window for:" default items {"AppStore"} if selectedAPP = {"AppStore"} then do shell script "defaults delete com.apple.AppStore 'NSWindow Frame AppStoreMainWindow'" end if if selectedAPP = {"Messages"} then do shell script "defaults delete com.apple.MobileSMS 'NSWindow Frame CKMessagesSceneDelegate'" end if if selectedAPP = {"Photos"} then do shell script "defaults delete com.apple.photos 'NSWindow Frame MainWindow''" end if if selectedAPP = {"Safari"} then do shell script "defaults delete com.apple.Safari 'NSWindow Frame BrowserWindowFrame'" end if if selectedAPP = {"System Information"} then do shell script "defaults delete com.apple.SystemProfiler 'NSWindow Frame SystemProfile'" end if if selectedAPP = {"System Settings"} then do shell script "defaults delete com.apple.systempreferences 'NSWindow Frame main'" end if
I came across this page https://www.codejam.info/2023/04/macos-reset-app-window-size-position.html that offers an interesting way to search for NSWindowFrame values.
Code:find ~/Library -type f -name '*.plist' -exec grep -E 'NSWindow ?Frame' {} +