A few short questions about bzr send implementation for Apple Mail
Guillermo Gonzalez
guillo.gonzo at gmail.com
Mon Mar 31 05:21:09 BST 2008
On Tue, Mar 25, 2008 at 11:46 AM, Erik Bågfors <zindar at gmail.com> wrote:
> Hi
>
> I have written support for Apple Mail. Unfortunately, this has to be
> done using Applescript. The Applescript is generated in python. The
> code I have now works, but due to how Applescript works, I need lines
> longer than 80 characters. I don't like this at all of course.
>
> What I would like to do is to move the Applescript into a totally
> separate little script and call that from the python code instead.
> That would separate the applescript from the python code which would
> be much better.
>
> However, that opens up a few more questions
> 1) Where would that script be put in the bzr source code?
> 2) Where would that script be installed?
maybe as a plugin?
> 3) How do I make sure that it's installed by setup.py (at least on Mac)
this plugin can be included in the DMG's, and maybe recommended by
Macports/Fink?
> 4) How do I find it in the python code to be able to execute it
I can recommend you to take a look to appsccript
<http://appscript.sourceforge.net/>, it have a nice (more pythonic)
interface.
The only problem I see is that it's a external dependency :-(
Cheers,
--
Guillermo
More information about the bazaar
mailing list