Created
May 19, 2016 20:53
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ osascript -l JavaScript objc-sandbox.js | |
objc-sandbox.js:0:23: execution error: Error on line 1: Error: protocol does not exist (-2700) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ osascript objc-sandbox.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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