Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Getting RubyCocoa to work in ruby scripts running on OS X 10.9 Mavericks
# Change this:
...
#!/usr/bin/ruby
require 'osx/cocoa'
# My Script…
...
# To this:
...
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require 'osx/cocoa'
# My Script…
...
# (this is untested in versions of OS X previous to 10.9, if you test it and confirm that scripts work correctly in 10.8 and below, please leave a comment)

Wow, this is really life saving! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment