• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Remember Classic? Tex-Edit loop runs glacially slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: delay 1 millisecond in Panther
  • Next by Date: do shell script (grep) AppleScript error
  • Previous by thread: Launch script within Mail problems
  • Next by thread: do shell script (grep) AppleScript error
  • Index(es):
    • Date
    • Thread