←back to thread

2039 points Gadiguibou | 3 comments | | HN request time: 0.44s | source
1. lapcat ◴[] No.36492054[source]
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>
replies(2): >>36492545 #>>36492800 #
2. spookthesunset ◴[] No.36492545[source]
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…
3. cyberge99 ◴[] No.36492800[source]
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)