Skip to content

Instantly share code, notes, and snippets.

@caged caged/gist:57845
Created Feb 4, 2009

Embed
What would you like to do?
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
You can’t perform that action at this time.