home *** CD-ROM | disk | FTP | other *** search
/ The Weather Channel - Everything Weather / TheWeatherChannel-EverythingWeather-Win31.iso / twcia / sky / sky.dxr / 00093.ls < prev    next >
Encoding:
Text File  |  1995-08-22  |  976 b   |  28 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 castName to the name of cast n
  7.     put castName into line lineCount of outPutString
  8.     set lineCount to lineCount + 1
  9.     repeat with i = 1 to the number of words in the text of cast n
  10.       if the foreColor of word i of field n = 249 then
  11.         put word i of field n && the number of lines in word 1 to i of field n into line lineCount of outPutString
  12.         put word i of field n && the number of lines in word 1 to i of field n
  13.         set lineCount to lineCount + 1
  14.       end if
  15.     end repeat
  16.   end repeat
  17.   set castName to "sky.lst"
  18.   put the pathName & castName
  19.   set writeObject to FileIO(mnew, "write", the pathName & castName)
  20.   if not objectp(writeObject) then
  21.     put writeObject
  22.     alert("somethings fucked up jame")
  23.   else
  24.     writeObject(mWriteString, outPutString)
  25.     writeObject(mdispose)
  26.   end if
  27. end
  28.