Last active
February 17, 2017 18:14
-
-
Save poundbangbash/28fbe4ddecd667ca62bbf1136bce233b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check current OUIWhatsNewLastShownLink value | |
apps=(Word Excel Powerpoint Outlook OneNote) | |
for app in ${apps[@]} | |
do | |
if [ -d /Applications/Microsoft\ ${app}.app ] | |
then | |
if [ $app = "OneNote" ] | |
then | |
version=$(defaults read "/Applications/Microsoft ${app}.app/Contents/Info" CFBundleShortVersionString) | |
value=$(defaults read com.microsoft.onenote.mac ONWhatsNewShownItemIds) | |
echo "${app}: " | |
echo " Version ${version}" | |
echo " ONWhatsNewShownItemIds: ${value}" | |
echo "" | |
else | |
version=$(defaults read "/Applications/Microsoft ${app}.app/Contents/Info" CFBundleShortVersionString) | |
value=$(defaults read com.microsoft.${app} OUIWhatsNewLastShownLink) | |
echo "${app}: " | |
echo " Version ${version}" | |
echo " OUIWhatsNewLastShownLink: ${value}" | |
echo "" | |
fi | |
else | |
echo "Microsoft ${app} is not installed" | |
continue | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment