A few short questions about bzr send implementation for Apple Mail
Alexander Belchenko
bialix at ukr.net
Tue Mar 25 15:16:47 GMT 2008
Erik Bågfors пишет:
> 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.
You can write long strings in chunks:
f = open('applescript', 'w')
f.write('beginning of very long string ')
f.write('continuation of this very long string ')
f.write('and more more more,')
f.write('and finally we can put the line endings.\n')
f.close()
May be this will help?
>
> 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?
> 3) How do I make sure that it's installed by setup.py (at least on Mac)
> 4) How do I find it in the python code to be able to execute it
>
> Regards,
> Erik
>
>
More information about the bazaar
mailing list