I heard of Ubiquity awhile ago, but hadn't gotten a chance to mess with it until recently... since then I've been in love with the idea of developing these sort of tools. The first one that came to my mind was for some friends of mine who send out (via email) medium sized files using various file transfer sites, including drop.io. After a couple of days I now have a drop-file-to-email command
http://gist.github.com/71201 You can't just subscribe and use the command since you will need to setup a developer account (for free) at drop.io in order to get the necessary API key... after you get an API key you can then create drops and upload files to drop on the fly with some restrictions (30 requests within 15 minutes, but I believe these are file requests, not server requests). If anyone is interested in checking it out without having to sign up you can email me and I'll send you my API key. A couple interesting things I ran in to while making this command: 1) a problem integrating with the email command using aliases and 2) the problem of uploading a file using the XMLHttpRequest object. Thanks to this article (http://igstan.blogspot.com/2009/01/pure- javascript-file-upload.html), I got code to create a coupleof functions which will perform a multipart/form-data post (including binary data from a file input element) using the XMLHttpRequest object and which only works in FF3 (thanks to it's extra DOM support for the aforementioned file input element), making it perfect for use by Ubiquity. I mapped the modified functions to CmdUtils as an example of how a future function MIGHT work (though these definitely need some work in terms of robustness). Thanks to Irbabe I was put on the path to aliasing the standard-feed email, but unfortunately the command is a little too specific and I could not manipulate all the necessary variables. So instead I copied out the email execute() function and getGmailTab() functions in to my own command and made the email function more generic. I'm wondering if the the existing email command couldn't just use an alias to a generic mailer command which is designed simply for aliasing... though I what point is it easier to make it in to a global function? So yeah, that's what I've been cooking up, let me know any questions, comments, improvements, etc. - Goose --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
