add script

This commit is contained in:
Michael
2021-10-28 13:35:37 +01:00
parent 10a26fc464
commit 73537505ab

16
fix-outlook-spotlight.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# This script is designed to fix Spotlight indexing issues for outlook
# by restarting Spotlight and pointing it to the Outlook Profiles Folder
# to create a new search index.
echo Turning Spotlight indexing off
/usr/bin/mdutil -i off /
echo Turning Spotlight indexing on
/usr/bin/mdutil -i on /
echo Forcing Spotlight re-indexing on Outlook profiles folder
/usr/bin/mdimport ~/Library/Group\ Containers/UBF8T346G9.Office/Outlook/Outlook\ 15\ Profiles/