Datei-Metadaten
spotlight_metadataRead macOS Spotlight metadata for a file. Specify attribute names to retrieve only selected metadata instead of all indexed entries.
Instructions
Liest die von Spotlight indexierten Metadaten einer Datei (mdls). Ohne attributes alle, sonst nur die genannten (z. B. kMDItemContentType, kMDItemContentCreationDate).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absoluter Dateipfad | |
| attributes | No | Attributnamen, z. B. ["kMDItemContentType", "kMDItemPixelHeight"] |