On 20 Nov 2017, at 21:12, Steve Walker wrote:
Ideally I'd like to create a custom plugin called Trello. The configuration
option would just be "Email to send to" - here you add your Trello email
address to add tasks. The flow would then be:
1. Type task into QS window
2. Tab, type Trello
3. Hit return - done
Could anyone tell me how I'd achieve this please?
Hopefully, I already have…
http://projects.skurfer.com/QuicksilverPlug-inReference.mdown
I haven’t tried to use the project template in Xcode 9, but I expect it to work.
I’m about to create a new plug-in myself and was going to record a video of the whole process, but I don’t have a lot of free time, so I wouldn’t wait around for that.
Two more things:
Unfortunately for you, sending e-mail from your local computer is not a simple thing to do. Since you’re writing the code and have complete control over the process, I would see if Trello has an API you could use directly. That will probably be easier than figuring out the mail stuff.
If you’re sure you want to use e-mail, you should be able to use QSMailMediator (part of the E-mail Support plugin) to get the server settings and send the message. Just be sure your plug-in requires it as a dependency.
Feel free to ask more specific questions here once you get started.
--
Rob McBroom
http://www.skurfer.com/