Hello,
I want to run some maintenance on our edit stations using Premiere, so I wrote a script that looks for all users in /Users and clears the ~/Library/Application Support/Adobe/Common/Media Cache Files/*
The script runs fine if I copy to the station and run ./cleanAdobeMediaCache, however when I added the script and created the policy it will not find the directory or any users. All stations have User accounts and since all are using Premiere have the Media Cache Folder. What am I missing?
#!/bin/sh
users=`find /Users -type d -maxdepth 1 -mindepth 1 ! -name Shared ! -name admin ! -name guest | grep "$a"`
for i in $users; do
if [ -d "$i/Library/Application Support/Adobe/Common/Media Cache Files/" ]; then
rm -rf $i/Library/Application Support/Adobe/Common/Media Cache Files/*
fi
done
exit 0