Re: System Services and Mail.app
Re: System Services and Mail.app
- Subject: Re: System Services and Mail.app
- From: "Dr. Rolf Jansen" <email@hidden>
- Date: Thu, 27 Apr 2006 15:01:29 -0300
Thank you so much for your reply. Your explanation sounds very
reasonable and it is supported by further tests I have made in the
meantime. Indeed, the "Capitalize String" sample service pastes back
the contents of the generalPasteboard.
I definitely will give your workaround a try at the next weekend.
However, I fear, I have to read the documentation on pasteboards and
front processes more closely, before I will be able to implement this
into my service.
Anyway, I will let you know the result.
Best regards
Dr. Rolf Jansen
Director R&D
SurTec International GmbH
Zwingenberg Bergstrasse
Germany
Am 27.04.2006 um 14:23 schrieb Mark Munz:
This was something that got broken in Mail 2.0 and has yet to be
addressed. I think it may be linked to them switching to the HTML
editor view.
I reported the problem a while back and it was marked as a duplicate.
A workaround is to put your results on the generalPasteboard, rather
than use the NSPasteboard given to you. Note: Doing this will wipe out
any contents of the user clipboard, a down side to this workaround.
I test to see if the front process is Mail 2.0 before doing this as
the bug is directly related to Mail 2.0. That keeps me from wiping out
the generalPasteboard when called from other applications that
correctly support Services.
Mark Munz
On 4/27/06, Dr.Rolf Jansen <email@hidden> wrote:
I am writing a system service which and it was my intention to use it
in particular together with Mail.app.
The service should take the selected text, make some transformations
and paste it back, overwriting the selection. I used the
SimpleService-Example of the AppKit-Samples as a template. I used
TextEdit.app as the host application for testing and everything
seemed to work out of the box.
However, the behaviour in Mail.app (Version 2.0.7 (746.2/749.3)) in
its message body pane is somewhat strange. The service seems to
receive the text well, but for most of the time it does not paste
back anything, and sometimes it pastes back all the time the selected
input string of the first invocation.
I can reproduce this behaviour with the "Capitalize String"-Service
of the SimpleService-Sample in Mail.app while it works as supposed in
TextEdit.app and also in the Header-TextFields of Mail.app.
However, SimpleService seems to be a quite old example, and perhaps
its concepts do no more apply in total to the latest incarnations of
the Mac OS X 10.4.6 apps.
So, does somebody have any ideas, how to make the "Capitalize
String"-
Service of the SimpleService-Sample work together with Mail.app.
I spent some days in devoloping my service and I was really looking
forward to use it together with Mail.app. I am sure that if by any
means SimpleService works, my custom service will work too.
Many thanks in advance for any help.
Best regards
Dr. Rolf Jansen
Director R&D
SurTec International GmbH
Zwingenberg Bergstrasse
Germany
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden