ForumsDevelopersQuicksilver + RubyGems Commandline Tools


Quicksilver + RubyGems Commandline Tools
Author Message
rjoung

Posted: Mar 15, 2010
Score: 0 Reference
Hi. Got the RubyGems command line tools working fine in the OS X terminal -- it was pretty awesome seeing 'toodledo add' work like magic! Now I'm having issues cleanly adding tasks from a Quicksilver invocation. My goal is to invoke QS, type in a task, tab Toodledo and hit enter.

Is the only way just to run a text mode command aka invoke QS, type period, type 'toodledo add 'test'' <tab> type 'Run a Text Command in Terminal'? That appears to be the only method that works so far. Even 'Run a Command in Shell' fails, with a '/bin/sh: toodledo: command not found'. Went so far as to hardcode its location into a simple Applescript:

using terms from application "Quicksilver"
on process text theText
set theResult to do shell script "~/.gem/ruby/1.8/gems/toodledo-1.3.2/bin/toodledo add " & theText
end process text
end using terms from

which generates this error:

Quicksilver[727]: Perform AppleScript Action Error: "NSAppleScriptErrorNumber" = 1;\n"NSAppleScriptErrorBriefMessage" = "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb: 27:in `gem_original_require': no such file to load -- cmdparse (LoadError)

... and so on.

Where to next? Any help appreciated!
will.sargent

Posted: Mar 31, 2010
Score: 0 Reference
Hi rjoung,

Probably the problem is that you have a different PATH environment variable in your local drive, and so it's not picking up the executables.

So first try

export GEM_HOME=$HOME/.gem/ruby/1.8/
export PATH=$GEM_HOME/bin:$PATH

And then if that doesn't work, do the following:

gem uninstall toodledo
gem install toodledo

and that should fix things.
You cannot reply yet

U Back to topic home

R Post a reply

To participate in these forums, you must be signed in.