Re: Error geetting offset of char in errMsg
Re: Error geetting offset of char in errMsg
- Subject: Re: Error geetting offset of char in errMsg
- From: Nigel Garvey <email@hidden>
- Date: Wed, 13 Jun 2001 17:24:46 +0100
Shane Stanley wrote on Wed, 13 Jun 2001 14:31:44 +1000:
>
On 13/6/01 9:48 AM +1000, Nigel Garvey, email@hidden, wrote:
>
>
> work-rounds that have worked in the past include:
>
>
>
> on error message
>
> set message to message as unicode text as text
>
>
Why do we have to go via Unicode, though?
It was just a fast way that Jeff Baumann (I think) discovered to convert
styled text into plain text. Obviously it would obviously be nicer if
there were a more direct coercion. More recently, there's been Richard
23's method, which I carelessly forgot to mention in my previous post:
on error message
set message to <<class ktxt>> of (message as record)
('<<' and '>>' are of course the single characters produced on
English-language keyboards by typing option-"\" and shift-option-"\"
respectively.)
NG