1
vote
1answer
169 views

Locating an app by its bundle identifier from the command line

I am looking for a way to find an app's location on the system from the command line using its bundle identifier. I can open it like this: open -b 'com.zerotier.ZeroTierOne' ... where ...
2
votes
2answers
515 views

Exclude files from “central metadata store”

I'm fairly familiar with the mdfind utility. I find it's very useful when I can't find a file or when I need to find a file with certain contents. The problem is that I need to exclude some files from ...
4
votes
2answers
285 views

Is there a way to provide a sort order to an mdfind query?

In trying to get a list of all music files from a particular album using mdfind I see that the files aren't necessarily returned in any order. I'd prefer album/track order if possible, but can't find ...
2
votes
3answers
500 views

Editing iPhoto-specific metadata

Perpetua:2011-01-16 ashley$ mdls IMAG0107.jpg ... kMDItemComment = "Cat with is tongue out." So, here's my question. xattr can be used to modify some ...
6
votes
4answers
2k views

How can I set Spotlight metadata to files?

I am looking for a command line utility (I need to use it in a script) that can set Spotlight metadata to files.