UTC Clean Font Cache

micheal_howard
New Contributor

Has anyone been able to automate this so it can be put in Self Service as opposed to having to connect and put in Admin rights for a user?

4 REPLIES 4

quedayone
Contributor

I have this in self service, if memory serves, I think it is the command UTC uses.

Run Unix command 'atsutil databases -remove'

The I force a reboot.

lashomb
Contributor II

Yep we run this and reboot.

#!/bin/sh
# Removes all user and system font caches
atsutil databases -remove
# Removes all user caches
atsutil databases -removeUser
# Stops the Font service
atsutil server -shutdown
# Starts the Font service
atsutil server -ping

donmontalvo
Esteemed Contributor III

@lashomb +1

Flushing Caches Best Practices

--
https://donmontalvo.com

robertliebsch
Contributor

!/bin/bash

UTC=https://bin.extensis.com/UTC-6-1-6-M.zip #this will change when a new version comes out
TOOL=http://cs.us.extensis.com.s3.amazonaws.com/fm_uninstall/utc/utc-removal-tool.zip

script.

mkdir ~/tmp/ || exit
cd ~/tmp/ || exit
curl -O $TOOL || exit
unzip ~/tmp/utc-removal-tool.zip || exit
sh ~/tmp/UTC-Removal-Tool.command || exit
curl -s -O $UTC || exit #need to figure out how to always download the latest version.
unzip ~/tmp/UTC-6-1-6-M.zip
installer -pkg ~/tmp/"Universal Type Client 6.1.6.pkg" -target / || exit
rm -rf ~/tmp/ || exit
echo "UTC Removed and reinstalled"
exit