home *** CD-ROM | disk | FTP | other *** search
/ The Weather Channel - Everything Weather / TheWeatherChannel-EverythingWeather-Win31.iso / twcia / tornado / tornado.dxr / 00080.ls < prev    next >
Encoding:
Text File  |  1995-08-22  |  1.1 KB  |  30 lines

  1. on writeIndex startCast, endCast
  2.   global outPutString
  3.   set outPutString to EMPTY
  4.   set lineCount to 1
  5.   repeat with n = startCast to endCast
  6.     set the foreColor of word the number of words in field n of field n to 236
  7.     set castName to the name of cast n
  8.     put castName into line lineCount of outPutString
  9.     put castName
  10.     set lineCount to lineCount + 1
  11.     repeat with i = 1 to the number of words in the text of cast n
  12.       if 255 <> the foreColor of word i of field n then
  13.         put word i of field n && the number of lines in word 1 to i of field n into line lineCount of outPutString
  14.         put word i of field n && the number of lines in word 1 to i of field n && the foreColor of word i of field n
  15.         set lineCount to lineCount + 1
  16.       end if
  17.     end repeat
  18.   end repeat
  19.   set castName to "tornado.lst"
  20.   put the pathName & castName
  21.   set writeObject to FileIO(mnew, "write", the pathName & castName)
  22.   if not objectp(writeObject) then
  23.     put writeObject
  24.     alert("somethings fucked up jame")
  25.   else
  26.     writeObject(mWriteString, outPutString)
  27.     writeObject(mdispose)
  28.   end if
  29. end
  30.