Trying out some nifty low hanging fruit type actions for Launchbar 6. Integration of Ruby into a proper Launchbar 6 Action is a bit fuzzy for me. So I have some questions:
- If a script trips over a gem that's not installed, does "require 'rubygems'" auto-install them? I just see some requirements tripping all of this up. I'm not sure if it throws a smart error or handles it by using this other gem.
- How can I pass a SINGLE parameter to a Ruby script?
- How can I pass MULTIPLE parameters to a Ruby script? Can I just suggest delimiting with a "/" and parsing it in the script? Is that wise in this instance, given the apparent limitations?
- Edited Extra: How can I handle launching a Ruby script that might or might not take an argument?
Any examples of these out there? I downloaded the examples posted by Obdev, and they're proving somewhat useful.
BTW Ordered lists don't work in preview here in the forum post page...that I could get to work at least.