Hello,
I was wondering if anyone can advise, I’m trying to write a script to scan peoples Macs for fonts & delete specific fonts.
I’ll be searching by font name & ideally font type (postscript/true type), and maybe copy the script to startup items unless it can lurk in the background.
All attempts so far have met with total failure, can anyone advise?
Many thanks,
Jamie
Model: G5 desktop
AppleScript: 1.10.7
Browser: Firefox 3.6.3
Operating System: Mac OS X (10.4)
Hi,
welcome to MacScripter.
Font Book.app is scriptable. For example, this code retrieves a list of all TrueType fonts
tell application "Font Book"
set truetypeFonts to typefaces whose font type is "TrueType"
end tell
read the dictionary of Font Book for further information
Thanks Stefan, that’s pointed me in the right direction, although I’m trying to delete fonts that aren’t all in Font book.
Maybe I need to perform a ‘delete file’ in finder then add some sort of condition ie kind=font