Remember Classic? Tex-Edit loop runs glacially slow
Remember Classic? Tex-Edit loop runs glacially slow
- Subject: Remember Classic? Tex-Edit loop runs glacially slow
- From: Gnarlodious <email@hidden>
- Date: Sat, 14 Feb 2004 11:16:26 -0700
I'm updating an old Classic script that processes a file in Tex-Edit. I
remember it running fast enough then but now it runs a loop incredibly slow,
even as a "Classic Application".
For anyone who cares to investigate, the offending snippet looks like:
tell window 1 of application "Tex-Edit Plus"
-- Remove non HTML
repeat 2 times
repeat with i from 1 to (count lines)
search line i looking for "\" ^*>"
if selection "" then
select characters 2 thru -2 of the selection
delete selection
end if
end repeat
end repeat
end tell
On a 700 line file it may take 15 minutes to loop through.
You'll need to boot into 9.2 and have Tex-Edit installed there to run this.
-- Gnarlie
There are two kinds of people in the world, those who see the world as a
dichotomy, and those who don't -- Gnarlodious
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.