Monte wrote:
> put tab before the last word of item x of line 4 of fld "tText"
>
> char-word-item-line ;-)
But in this scenario, the items are strings of multiple lines. . . ouch,
this sounds like a reflection of the same earlier problem of not being able
to find strings of multiple lines. . .some intrinsic limitation there. . .
OK, this works to accomplish the same thing. . .
global gDataIn, gDataOut
on mouseUp
put empty into gDataOut
set the itemdel to "�"
put fld "tText" into gDataIn
repeat for each item x in gDataIn
put tab before the last word of line 4 of x
put x &"�" after gDataOut
end repeat
put gDataOut into fld "catch"
end mouseUp
We can live with this. . .faster anyway. .
>> This script:
>>
>> on mouseUp
>> set the itemdel to "�"
>> repeat with x = 1 to the number of items of fld "tText"
>> put tab before the last word of line 4 of item x of fld "tText"
>> end repeat
>> end mouseUp
>>
>> generates this error:
>>
>> Script compile error:
>> Error description: Chunk: bad chunk order (must be small to large)
>>
>> The errant line being:
>>
>> put tab before the last word of line 4 of item x of fld "tText"
>>
>> Why?
>>
Om shanti,
Hinduism Today
Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED]
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.