mxmora@unix.SRI.COM (Matt Mora) (02/28/91)
I guess I'm a little clueless on this selected/foundchunk
stuff in hypertalk. Why is it after I find something I can't
use the foundchunk more than once?
For example in the script below I have to find the text three
times in order to add the cr's before and after and to format the
selected text. If I try to use the foundchunk more than once
it gives me a "Can't under stand this" error.
on boldheader thestring
find string thestring
if the result <> "not found" then
put return before the foundchunk
find string thestring
select the foundchunk
domenu "bold"
domenu "helvetica"
find string thestring
put return after the foundchunk
end if
end boldheader
Also is there any books that cover this topic well?
And what is the command to set the text attributes? I'm sure there
must be a better way than to use a domenu.
Can someone explain the foundchuck selected text stuff?
I need to do some heavy formating of some text in hypercard and at this
rate it will take a while.
Also, why are the fields in hypercard sooooo sloooooow!! Is there
any way to speed them up?
Thanks for any help you can give. I guess I've been away from hypertalk
too long.
Matt
--
___________________________________________________________
Matthew Mora | my Mac Matt_Mora@sri.com
SRI International | my unix mxmora@unix.sri.com
___________________________________________________________Jim.Russell@f421.n109.z1.fidonet.org (Jim Russell) (03/03/91)
The script you posted re the foundChunk seems to have not selected it
after the second find. Might that be your problem?
--
Jim Russell, Jim.Russell@f421.n109.z1.fidonet.org
via The Black Cat's Shack's FidoNet<->Usenet Gateway
blkcat.fidonet.org and Fidonet 1:109/401