Sample Task
OK so this was supposed to be done yesterday, but shiny things distracted me as they often do. But here’s part two of the promised example code.
Mailer

This is one of those tasks I would’ve liked to include in the core suite included with Proxi but there are a few lingering questions about it. The MessageFramework, on which this is based, is sparsely documented and I’m not sure Apple’s commitment to it. It also requires that you’ve configured Mail correctly, i.e. you’re not using some other email application. So I was kind of on the fence about this one. Maybe it’ll become part of the core suite in a new release. Maybe not.
Anyway, this task is also pretty straightforward. Gather some info using 2 GValueTextField’s (these are new as of Proxi v1.1 and so they haven’t rippled completely through Proxi yet) and one GValueTextView. Those allow specially formatted text to appear as Value tokens.
The instructions for this task bundle are the same as for the trigger: Grab the source, compile with XCode, throw the bundle in /Library/Application Support/Proxi/PlugIns/ and restart Proxi. If you built it right and I didn’t screw something up, you should see Mailer in your task list.
For more information on creating your own triggers and task, check this article.
Source: mail.zip
Proxipedia: Mailer Task