Some time ago StefanK helped me out by writing an installer for fonts.
I’ve managed to stop the over-installation of plain fonts by using their open window names, but cannot find a way to do it with outline fonts.
We get lots of fonts, some of which are corrupt, and we would prefer to not reinstall over existing ‘clean’ fonts. Also, installed font names seem to often vary from the font file names.
The install line for outline fonts is…
do shell script "mv -f " & quoted form of POSIX path of (aFont as alias) & space & quoted form of POSIX path of installPath
Is there a shell script that will indicate that the font already exists please?
Regards
Santa
Model: intel 24" iMac
Browser: Safari 525.20
Operating System: Mac OS X (10.5)
make the "-f’ into a “-n”. Here are the relevant bits from mv’s man page.
The following options are available:
-f Do not prompt for confirmation before overwriting the destination
path. (The -f option overrides any previous -i or -n options.)
-n Do not overwrite an existing file. (The -n option overrides any
previous -f or -i options.)