Re: Font Testing - TOO slow.( Efficiency experts needed)
Re: Font Testing - TOO slow.( Efficiency experts needed)
- Subject: Re: Font Testing - TOO slow.( Efficiency experts needed)
- From: Hans Haesler <email@hidden>
- Date: Fri, 5 Jan 2001 08:35:11 +0100
On Thu, 4 Jan 2001, Xandra Lee wrote:
>
Anyway, here's a much improved version,
Hello Xandra,
I think you've got it. The speed is okay.
The version I sent yesterday is inspired from an old script of
mine. At the time I found that building the list of the names
takes longer than cycling through the records, extracting the name
and comparing it with the name to test. But I think this depends
on the number of active fonts and on the number of fonts to test.
>
NOTE: I've yet to deal with the fact that checking for AGaramondBold,
>
will pass test if AGaramond is in the list) etc
Consider this:
---
set xList to {"Susan", "Alixandra", "John"}
if "xandra" is in xList then
set msg to "Yeah."
else
set msg to "Nope."
end if
---
Hans
---
Hans Haesler | email@hidden