Making Scripts

Creating scripts for Corripio is fairly easy, if you know how to program. Corripio supports any type of script that Mac OS X can run from the command line. Some of these are PHP, Ruby, Python, Perl, and Lua.

Artwork Scripts

Scripts that are intended to search for artwork are very simple to implement. They just take a search string as its argument.

jeff@iMac$ ruby ~/artwork.rb The Beatles Abbey Road

Returned is a string of links delimitated by newlines.

http://ak.buy.com/db_assets/large_/images/719/60135719.jpg http://ak.buy.com/db_assets/large_/images/842/63938842.jpg http://ak.buy.com/db_assets/large_/images/842/63938842.jpg

Lyrics Scripts

Scripts for lyrics have a two additional requirements. They only return one string of lyrics or nothing. Also they have a ^ marker for song names. Extra precaution should be taken for removing HTML tags like quot; and amp;.

jeff@iMac$ ruby ~/lyrics.rb The Beatles ^Across The Universe

Returned is a string of lyrics.

Words are flying out like endless rain into a paper cup They slither while they pass They slip away across the universe Pools of sorrow waves of joy are drifting thorough my open mind Possessing and caressing me

Installing Scripts

All you have to do to install your script it to drag it into the plugins preferences panel. It will then copy the script to ~/Application Support/Corripio/Plugins. Then to uninstall just drag the script out of the table view or press delete.

About