Skip to content

Instantly share code, notes, and snippets.

@caged
Created February 4, 2009 00:19
Show Gist options
  • Save caged/57845 to your computer and use it in GitHub Desktop.
Save caged/57845 to your computer and use it in GitHub Desktop.
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