Is there a way to programmatically access metadata of a single file on MacOS?
I know Apple provides NSMetadataQuery
, but it seems it only allows to search in particular folders for files matching some parameters. Actually I'd prefer not to search for all files matching but check if a particular file matches.
Is there a way or the only solution is to analyze the results of the query and see if my file is among them?