![]() You could do this by clicking on Mail, or using open -a Mail as we do in the command. Using defaults delete we can delete the entire domain, but since this is within the container we need to provide the full path. You should probably move this elsewhere if you wish to keep it. Using cp to copy the preferences file, a backup is created on your Desktop. Make a backup of the existing settings.Using AppleScript tell application … to quit we can automate this, and ignore if it fails (usually because Mail isn’t running) using the semicolon. Mac Mail has the bundle identifier so settings are stored in the plist with that name, within the sandbox container for that app. In macOS, preferences can be edited using the command line tool defaults. This creates a backup of the current settings on your Desktop then resets your Mail settings. ![]() Osascript -e 'tell application "Mail" to quit' 2> /dev/ null cp ~ /Library/Containers//Data/Library/Preferences/ ~ /Desktop & defaults delete ~/Library/Containers//Data/Library/Preferences/ & sleep 3 & open -a Mail Code language: JavaScript ( javascript )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |