From b984b41dc0a69da73110a88cd2519e2196f3680a Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Fri, 18 Nov 2022 15:50:18 +0000 Subject: [PATCH] Restart affected apps when done --- scripts/macos-setup/macos-apps.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/macos-setup/macos-apps.sh b/scripts/macos-setup/macos-apps.sh index d86c38a..6dd3c90 100755 --- a/scripts/macos-setup/macos-apps.sh +++ b/scripts/macos-setup/macos-apps.sh @@ -489,6 +489,25 @@ defaults write org.m0k.transmission BlocklistAutoUpdate -bool true log_msg "Randomize port on launch" defaults write org.m0k.transmission RandomPort -bool true +################################# +# Restart affected applications # +################################# +log_section "Finishing Up" +log_msg "Restarting afffecting apps" +for app in "Activity Monitor" \ + "Address Book" \ + "Calendar" \ + "Contacts" \ + "Finder" \ + "Mail" \ + "Messages" \ + "Photos" \ + "Safari" \ + "Terminal" \ + "iCal"; do + killall "${app}" &> /dev/null +done + ##################################### # Print finishing message, and exit # #####################################