Valentin Schmidt wrote:
addendum:
no, I don't think the mentioned script preserves hyperlinks, because
you are propably right, director's RTF implementation doesn't know
anything about hyperlinks.
But you could extend my handler by storing all hyperlinks (using
member.hyperlinks and member.char[a..b].hyperlink) of the original
text members, and then reinserting those hyperlinks into the new
concatenated text member.
like this:
----------------------------------------
-- concatenates 2 text-member into new text member
-- (preserving format and hyperlinks)
----------------------------------------
on concatenateTextMembers (newMem, m1, m2)
newMem.rtf = concatenateRTF (m1.rtf, m2.rtf)
hl = m1.hyperlinks
repeat with h in hl
newMem.char[h[1]..h[2]].hyperlink = m1.char[h[1]..h[2]].hyperlink
end repeat
tOffset = m1.text.length + 1 -- because of automatic linebreak after
m1
hl = m2.hyperlinks
repeat with h in hl
newMem.char[tOffset+h[1]..tOffset+h[2]].hyperlink =
m2.char[h[1]..h[2]].hyperlink
end repeat
end
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]