← Back to context

Comment by lapcat

3 years ago

Manage the Launch Services database:

  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister

Manage file extended attributes (such as quarantine):

  xattr

Execute a script (AppleScript or JavaScript):

  osascript -e <statement>

You can also prepend #!/usr/bin/osascript to a script and then make it executable with chmod oag+x. You can then invoke it normally in bash: ./filename.sh (or whatever)

It’s weird how macs don’t come with a GUI for managing system services. Windows does.. that being said the number of times I’ve had to mess with system services on mac can probably be counted with a few fingers…