How to find files in use by process in OSX.

A cool little gem I learned today. Open your terminal and type:

lsof

This will give you everything you need to know about open files, for specific files do just grep through it via:

lsof | grep ".pdf"

which will show you an open PDF files.