Jump to content
Sign in to follow this  
canadaduane

Alfred 2 Ruby Framework for workflows

Recommended Posts

I've started work on a workflow bundle that I intend to use as a base for other scripting workflows. The language I'm most proficient in is Ruby, so I've taken the liberty of creating this for myself and others to use when developing in Ruby.

 

Features:

 

  • Shows exceptions and debug output in the Mac OS X Console
  • Adds a ruby gems repository to the workflow bundle so you can package gems with your workflow.
  • Provides access to the workflow bundle's info.plist data
  • Provides sqlite3 gem

It's incomplete, but I wanted to get feedback from others as soon as possible. For example, I've added a compiled sqlite3 gem in as part of the gem repository. Does this work across Mac systems? i.e. if you install the workflow, do you get sqlite3 support out-of-the-box?

 

To get started:

 

Copy the init.rb.example file into your script window (e.g. Run Script action). Choose /usr/bin/ruby as the script language. The contents of init.rb.example is some "bootstrap" ruby code that takes great care to catch all exceptions and send them to the Console.app so you can debug your scripts.

 

Copy alfred.rb and main.rb to your bundle. Also copy ruby-1.8 and its subdirectories. This is the gem repo that will let you install gems as part of the bundle for others to use.

 

https://github.com/canadaduane/alfred2-ruby-framework

 

Thanks,
Duane Johnson

http://makerhome.ca/

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...