Created
October 7, 2013 01:42
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow, this is really life saving! Thanks.