All apps/mdls

mdls

mdls

List metadata attributes of files.

Runs as mdls|macOS

Command form

ai-draft · 2 tasks · 3 fields

List Spotlight metadata attributes of files. The plist output option is left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui mdls
Show file metadataExample values, fixed in this page — nothing here reaches a terminal
Basic
Files*
any
TasksEach one presets the form for one job
All metadata
files
Content type only
filesname
ParametersOnly these flags are editable in the form
Files
path · positional 0 · repeatable
Attribute
Print only this attribute. Repeat for several.
string · repeatable
-namekMDItemContentTypekMDItemDisplayNamekMDItemContentCreationDatekMDItemContentModificationDatekMDItemDateAdded
Raw output
boolean
-raw
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed mdls against its version. A form that does not match your version is not offered.