I've been trying to figure this out but I am no scripting guru so I'll just explain the goal and hope someone knows alot more than me!
We've gotten a request to remove literally 200+ fonts from every system in 3 different labs. I am trying to write a script to do this but am running into alot of roadblocks.
First I am writing this in Apple Script editor...using the following commands for each font:
do shell script "rm /library/fonts/fontname*"
This runs into an error if that font doesn't exist and the script stops there, i've tried to add 2> /dev/null to the end of that line but then it says there's an unexpected end of line but found number.. Any help is appreciated, thanks!