Skip to content

Instantly share code, notes, and snippets.

@uchcode
Created May 19, 2016 20:53
Show Gist options
  • Save uchcode/5b1daa3323c7eafe9f25f4d10968cc10 to your computer and use it in GitHub Desktop.
Save uchcode/5b1daa3323c7eafe9f25f4d10968cc10 to your computer and use it in GitHub Desktop.
el capitan の osascript には " -l JavaScript" と言語指定するとプロトコルを認識しないバグがある? ref: http://qiita.com/tom-u/items/f0eab3066c2623ebc7ba
$ osascript -l JavaScript objc-sandbox.js
objc-sandbox.js:0:23: execution error: Error on line 1: Error: protocol does not exist (-2700)
$ osascript objc-sandbox.js
ObjC.registerSubclass({
name: "Delegate",
superclass: "NSObject",
protocols: ["NSApplicationDelegate"]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment