{
"name": "mdls",
"description": "Lists the metadata attributes for the specified file",
"options": [
{
"names": [
"--name",
"-name"
],
"description": "Print only the matching metadata attribute value. Can be used multiple times",
"takes_arg": true,
"arg": {
"name": "attributeName",
"description": "Metadata attribute name",
"suggestions": [
"_kMDItemDisplayNameWithExtensions",
"kMDItemContentCreationDate",
"kMDItemContentCreationDate_Ranking",
"kMDItemContentModificationDate",
"kMDItemContentModificationDate_Ranking",
"kMDItemContentType",
"kMDItemContentTypeTree",
"kMDItemDateAdded",
"kMDItemDateAdded_Ranking",
"kMDItemDisplayName",
"kMDItemDocumentIdentifier",
"kMDItemFSContentChangeDate",
"kMDItemFSCreationDate",
"kMDItemFSCreatorCode",
"kMDItemFSFinderFlags",
"kMDItemFSHasCustomIcon",
"kMDItemFSInvisible",
"kMDItemFSIsExtensionHidden",
"kMDItemFSIsStationery",
"kMDItemFSLabel",
"kMDItemFSName",
"kMDItemFSNodeCount",
"kMDItemFSOwnerGroupID",
"kMDItemFSOwnerUserID",
"kMDItemFSSize",
"kMDItemFSTypeCode",
"kMDItemInterestingDate_Ranking",
"kMDItemKind",
"kMDItemLogicalSize",
"kMDItemPhysicalSize"
]
}
},
{
"names": [
"--raw",
"-raw"
],
"description": "Print raw attribute data in the order that was requested. Fields will be separated with a ASCII NUL character, suitable for piping to xargs(1) -0"
},
{
"names": [
"--nullMarker",
"-nullMarker"
],
"description": "Sets a marker string to be used when a requested attribute is null. Only used in -raw mode. Default is '(null)'"
},
{
"names": [
"--plist",
"-plist"
],
"description": "Output attributes in XML format to file. Use - to write to stdout option. Incompatible with options -raw, -nullMarker, and -name",
"takes_arg": true,
"arg": {
"name": "stdout or file",
"description": "XML output location",
"suggestions": [
"-"
],
"template": "filepaths"
}
}
],
"args": [
{
"name": "file",
"is_variadic": true,
"template": "filepaths"
}
]
}