←back to thread

2039 points Gadiguibou | 1 comments | | HN request time: 0.244s | source
Show context
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 #
1. 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)