Automatically extracting "Get Info" descriptions

Doctor Q

Administrator
Original poster
Staff member
Sep 19, 2002
36,051
3,272
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?
 

chown33

Moderator
Staff member
Aug 9, 2009
8,376
4,361
Pumpkindale
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