-
Notifications
You must be signed in to change notification settings - Fork 16
Home
scottfwalter edited this page Jun 26, 2012
·
5 revisions
Welcome to the Reading-List-to-Instapaper wiki!
sudo gem install ruby_gntp
sudo gem install nokogiri-plist
If you get this:/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- core_ext/string (LoadError)
cd /Library/Ruby/Gems/1.8/gems/nokogiri-plist-0.5.0/lib/core_ext
sudo chmod o+r string.rb #changes permission to read
If you have growl version less than 1.3 you will get connection refused messages to solve this you need to trap for the connection exception
begin
GNTP.notify({
:app_name => "Instapaper",
:title => "Added to Instapaper",
:text => "Successfully added #{url}",
:icon => "http://www.instapaper.com/apple-touch-icon.png",
})
rescue
and
begin
GNTP.notify({
:app_name => "Instapaper",
:title => "Error Adding to Instapaper",
:text => "Could not add #{url}",
:icon => "http://www.instapaper.com/apple-touch-icon.png",
})
rescue Errno::ECONNREFUSED
end