Created
February 4, 2009 00:19
-
-
Save caged/57845 to your computer and use it in GitHub Desktop.
This file contains 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
framework 'ScriptingBridge' | |
# SBElementArray bombs without this | |
class SBElementArray | |
def to_ary | |
NSArray.arrayWithArray(self) | |
end | |
end | |
xcode = SBApplication.applicationWithBundleIdentifier("com.apple.xcode") | |
# alloc.init causes this to bomb, although the scripting class is found | |
new_group = xcode.classForScriptingClass('group').alloc.init | |
puts new_group.className |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment