Re: Can't set creator type
Re: Can't set creator type
- Subject: Re: Can't set creator type
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 24 Feb 2004 06:01:35 -0800
On 2/24/04 1:50 AM, "Mr Tea" <email@hidden> wrote:
>
> 'text returned' may be Unicode now. 'creator type' has to be real plain
>
> text. Use the <<class ktxt>> of (text returned of dRes) as record'
>
> method
>
> to get the plain text.
>
>
Unicode it is, as I had found out by slipping a 'display dialog class
>
of theVariable' line into my script. Is this really the only way to
>
convert 'text returned' into 'real plain text'. No wonder my pathetic
>
attempts at coercing with 'as text' or 'as string' failed. I knew what
>
I wanted to do, but not how to do it.
>
>
So, prior to Panther, this line of my orignal script returned a usable
>
result:
>
>
set theCode to the value of fCode
>
>
But now I need to do this:
>
>
set theCode to <class ktxt> of (the value of fCode as record)
>
>
Frankly, that stinks. How is a newbie scripter supposed to figure that
>
one out? Or even a fairly experienced scripter like myself? Whatta gyp!
>
Ridiculous. Crass. Absurd.
I expect they'll be bringing some way to do this more smoothly in due
course. Maybe an actual 'plain text' data type, with coercions that work
simply. I imagine we're stuck with 'string' meaning that 'international'
styled text thingy, though I've always been a bit puzzled as to why/how that
became the default sort of string. There could be a good reason for that.
Anyway, I can't imagine we're stuck with <<ktxt>> forever. Be honest, though
- wouldn't you be happy to put up with it a while longer if only the
uncaring yobs who run this mailing list let us use the actual guillemet
characters when trying to discuss it?
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.