Create a gist now

Instantly share code, notes, and snippets.

Embed
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)
@trivektor

This comment has been minimized.

Show comment
Hide comment
@trivektor

trivektor Jan 17, 2015

Wow, this is really life saving! Thanks.

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