34429 Views 8 Replies Latest reply: Apr 19, 2010 2:03 PM by William Boyd, Jr.
Hi, I downloaded a couple of fonts (.ttf) a while ago and I'm trying to delete them. But when I try to empty the trash it tells me that they can't be deleted because the files are "in use". I've checked the system processes and I can't find any ttf files running, or any processes or applications that might refer to the files. I get the same message when the computer is freshly booted up.
Welcome to Apple's discussion groups.
If you're willing to run a command to learn what's holding onto those font files, launch the Terminal utility, then type this command (spaces doubled for clarity):
lsof | grep xyz
where you replace "xyz" with enough of the name of the font file (in proper case) to make it somewhat unique. The name of the holding process will be at the left end of the output line. If there's no result, try this version (which will require you to enter your administrative password:
sudo lsof | grep xyz
Dealing with ttf files can be a pain. Often times you can't delete the file because it claims its in use. This is because Quicklook creates an active thumbnail of the file in Finder. To resolve this issue, you can either kill the Quicklook using the Activity Monitor in your Application folder's Utility folder.
Or you can restart your computer. However, this can be tricky if the file is on your desktop where Quicklook will automatically enter memory to render it, thus login back to your desktop may lock it again.
My experience has been that it is safe to Quit Quicklook via Activity Monitor, as it just starts right back up when you need it.
After entering in the command i was able to delete the file with no problem.
Thanks and it should be noted for anyone else that you do not get an "it's ok to delete" message you just run the command then delete.
That command isn't intended to free a file so that it can be deleted, but to show what process has a file open so that you can do something (such as restarting the process) to free the file.
It's possible that in your case you waited long enough for the "holding" process to release it.