Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Find out which program/process is locking a file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Find out which program/process is locking a file
Authored by: UberFu on Nov 30, '09 08:10:55AM
Snow Leopard improves the reliability of ejecting discs and external drives. Sometimes when an application or process is using the files on a drive, Mac OS X prevents you from ejecting it, but you donít always know why. In Snow Leopard, youíll get fewer of those errors and when you do get them, youíll see exactly which application is using the drive, so you can quit it and eject the drive properly.
I haven't had a chance yet to really get into SL but Apple has noted in the past and the above text is currently on their website that the system is supposed to now point out what is causing a Disk Eject hang-up. I have known from past experience that past Apple "features" like this tend to be watered down and intended for very very basic use. So I'm assuming that from all the Script writing and Automator stuff - that it either doesn't work or it sucks? It would be nice if we could get something to work smoothly in Leo tho.

[ Reply to This | # ]
10.5: Find out which program/process is locking a file
Authored by: nova20 on Dec 02, '09 03:29:33AM

That's about right about some Apple features. In this case the new SL feature tells you the name of the item in use. It's more than before but it could do better. The script by boris42 gives the full path of that item, the Pid, the user name owning it and the application name.
The full path is really useful when you have more than one volume, while the user name helps to avoid deleting something owed by another user on your mac.

Regarding Leopard, the Automator workflow works well provided you make it in Leo (you cannot use it in Leo if it was made in SL) and install it in ~/Library/Workflows/Applications/Finder/. The workflow will be available from the Contextual Menu Items/More/Automator.



[ Reply to This | # ]