Skip to content

Instantly share code, notes, and snippets.

@nsforge
Created October 7, 2013 01:42
Show Gist options
  • Save nsforge/6861400 to your computer and use it in GitHub Desktop.
Save nsforge/6861400 to your computer and use it in GitHub Desktop.
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
Copy link

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