Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Doctor Q

Administrator
Original poster
Staff member
Sep 19, 2002
40,229
8,742
Los Angeles
Is there a Terminal command, an Applescript or Automator action, or even a Mac app that can extract the "Get Info" descriptions or other metadata from a set of Finder files?
 
The 'mdls' command can do this. It's basically the command-line interface to all Spotlight metadata retrieval.

Some metadata (owner, permissions, locked, etc.) is also available via commands 'ls', 'xattr'.

If you want to search for a file by its metadata, then 'mdfind' is the way to go.
 
  • Like
Reactions: aristobrat
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.