Automatically extracting "Get Info" descriptions

Discussion in 'Mac Programming' started by Doctor Q, Apr 18, 2017 at 9:08 AM.

  1. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #1
    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?
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    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.
     
  3. Doctor Q thread starter Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #4

Share This Page