Re: QuarkXpress find and replace with variables (new question)
Re: QuarkXpress find and replace with variables (new question)
- Subject: Re: QuarkXpress find and replace with variables (new question)
- From: Shane Stanley <email@hidden>
- Date: Sat, 27 Jan 2001 08:53:19 +1100
On 27/1/01 4:42 AM +1000, Aaron Miller, email@hidden, wrote:
>
Also, Shane, what did you mean by checking each instance one at a
>
time?
You will have to loop through them, doing the comparisons outside QXP,
something like:
-- untested --
set i to 1
repeat
try
set thisOne to text i where it is list1item
on error
exit repeat
end try
my doCheck(thisOne)
if result is true then
set text i where it is list1item to whatEver
end if
set i to + 1
end repeat
doCheck(thisOne)
if thisOne = whatever then
return true
else
return false
end if
end doCheck
And that's a lot, lot slower.
--
Shane Stanley, email@hidden