Re: Today's Question - poke a character in a string
Re: Today's Question - poke a character in a string
- Subject: Re: Today's Question - poke a character in a string
- From: email@hidden (Michael Sullivan)
- Date: Thu, 1 Aug 2002 20:26:25 -0400
- Organization: Society for the Incurably Pompous
>
> Subject: Re: Today's Question - poke a character in a string
>
> From: email@hidden (Michael Sullivan)
>
> Date: Thu, 1 Aug 2002 01:50:09 -0400
>
>
>> On Wednesday, July 31, 2002, at 02:37 AM, Andy Wylie wrote:
>
>>> set (MyLongString's text items)'s item 400 to ">"
>
> But oddly enough it works if you do this:
>
>
>
> set (MyLongString's text items)'s item 400 to ">"
>
> set MyLongString to result as string
>
Works where and how? MyLongString gets filled with ">".
>
>
> Or in classic functional fashion:
>
>
>
> set foo to (set (foo's text items)'s item 400 to ">") as string
>
This obviously does not work. Am I missing something?
No, I am... My brain. Teach me to post code without running it.
I forgot that the principle extends even further, and only blahblah's
item 400 is given to the set command, so natural it returns only what
that item was set to, which isn't what we wanted.
<elitella> Never Mind. </elitella>
Michael
_______________________________________________
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.