You can use the mdls -raw command to view the metadata for files on your Mac.

Example: mdls -raw /pathToYourFile

If a file was sent to you via airdrop, that file will have metadata that contains "com.apple.AirDrop". All you need to do to see all files that were sent to your Mac Computer via airdrop is run the mdfind command and search for "com.apple.AirDrop".

Example: mdfind com.apple.AirDrop

You can also use the mdfind command to search in a specific directory for certain file types.

Example:  mdfind -onlyin ~/Downloads/ com.apple.AirDrop | grep .jpg

Keith Mitnick

As Senior System Engineer & COO at HCS, Keith wears many hats. He is responsible for a myriad of duties at HCS. Keith is always willing to do the job at hand and is never afraid to get his hands dirty.

Speak with an Apple Certified expert today

We’d love to discuss your business challenges, even if you’re not sure what your next step is. No pitch, no strings attached.

Let's Talk