Skip to content

Instantly share code, notes, and snippets.

@erikng
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikng/0982596f817af11965f4 to your computer and use it in GitHub Desktop.
Save erikng/0982596f817af11965f4 to your computer and use it in GitHub Desktop.
Possible Fix for Office 2011 / Adobe CS 6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<key>category</key>
<string>Patches</string>
<key>description</key>
<string>This script will fix the issue with Office 2011 (up to 14.4.8 hopefully) when instances of Adobe Creative Suite are present.</string>
<key>developer</key>
<string>Youbreakityoubuyit</string>
<key>display_name</key>
<string>AdobeFontFix</string>
<key>installcheck_script</key>
<string>#!/bin/sh
# Checks if fonts are already moved
if
[[ ! -e "/Library/Fonts Disabled/KozGoPr6N-Bold.otf" ]] &amp;&amp; [[ ! -e "/Library/Fonts Disabled/PTMono.ttc" ]] &amp;&amp; [[ ! -e "/Library/Fonts Disabled/PTSans.ttc " ]] &amp;&amp; [[ ! -e "/Library/Fonts Disabled/PTSerif.ttc" ]] &amp;&amp; [[ ! -e "/Library/Fonts Disabled/PTSerifCaption.ttc" ]]
then
exit 0
else
exit 1
fi
</string>
<key>installer_type</key>
<string>nopkg</string>
<key>minimum_os_version</key>
<string>10.10.0</string>
<key>name</key>
<string>AdobeFontFix</string>
<key>postinstall_script</key>
<string>#!/bin/sh
# Requires root.
# Must be ran after installing Adobe CS 6 + Updates.
# Tested on new user profiles. Current profiles with bad Font Cache may crash one additional time.
# Disable conflicting font (Thanks bruienne)
mv /Library/Fonts/KozGoPr6N-Bold.otf /Library/Fonts\ Disabled
# Additional fonts found at https://jamfnation.jamfsoftware.com/discussion.html?id=13692#responseChild82119
mv /Library/Fonts/PTMono.ttc /Library/Fonts\ Disabled
mv /Library/Fonts/PTSans.ttc /Library/Fonts\ Disabled
mv /Library/Fonts/PTSerif.ttc /Library/Fonts\ Disabled
mv /Library/Fonts/PTSerifCaption.ttc /Library/Fonts\ Disabled
# Taken from rtrouton
# Removes all user-based and system font caches
atsutil databases -remove
sleep 3
# Stops the Apple Type Services service
atsutil server -shutdown
sleep 3
# Starts the Apple Type Services service
atsutil server -ping
</string>
<key>uninstall_method</key>
<string>uninstall_script</string>
<key>uninstall_script</key>
<string>#!/bin/sh
mv /Library/Fonts\ Disabled/KozGoPr6N-Bold.otf /Library/Fonts
mv /Library/Fonts\ Disabled/PTMono.ttc /Library/Fonts
mv /Library/Fonts\ Disabled/PTSans.ttc /Library/Fonts
mv /Library/Fonts\ Disabled/PTSerif.ttc /Library/Fonts
mv /Library/Fonts\ Disabled/PTSerifCaption.ttc /Library/Fonts
# Taken from rtrouton
# Removes all user-based and system font caches
atsutil databases -remove
sleep 3
# Stops the Apple Type Services service
atsutil server -shutdown
sleep 3
# Starts the Apple Type Services service
atsutil server -ping
</string>
<key>uninstallable</key>
<true/>
<key>unattended_install</key>
<true/>
<key>unattended_uninstall</key>
<true/>
<key>update_for</key>
<array>
<string>Your CS6 Package</string>
</array>
<key>version</key>
<string>1.1</string>
</dict>
</plist>
#!/bin/sh
# Requires root.
# Must be ran after installing Adobe CS 6 + Updates.
# Tested on new user profiles. Current profiles with bad Font Cache may crash one additional time.
# Disable conflicting font (Thanks bruienne)
mv /Library/Fonts/KozGoPr6N-Bold.otf /Library/Fonts\ Disabled
# Additional fonts found at https://jamfnation.jamfsoftware.com/discussion.html?id=13692#responseChild82119
mv /Library/Fonts/PTMono.ttc /Library/Fonts\ Disabled
mv /Library/Fonts/PTSans.ttc /Library/Fonts\ Disabled
mv /Library/Fonts/PTSerif.ttc /Library/Fonts\ Disabled
mv /Library/Fonts/PTSerifCaption.ttc /Library/Fonts\ Disabled
# Taken from rtrouton
# Removes all user-based and system font caches
atsutil databases -remove
sleep 3
# Stops the Apple Type Services service
atsutil server -shutdown
sleep 3
# Starts the Apple Type Services service
atsutil server -ping
@macmule
Copy link

macmule commented Apr 10, 2015

So far, running the above on an affected Mac as root is working for me.. with existing accounts that failed previously too.

Adding to my Casper Imaging workflow now & will advise.

@erikng
Copy link
Author

erikng commented Apr 10, 2015

macmule, what about new users?

I can only get this to work with users who had previously logged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment