home *** CD-ROM | disk | FTP | other *** search
/ The Weather Channel - Everything Weather / TheWeatherChannel-EverythingWeather-Win31.iso / twcia / sky / sky.dxr / 00099.ls < prev    next >
Encoding:
Text File  |  1995-08-22  |  844 b   |  27 lines

  1. on readIndex startCast, endCast
  2.   repeat with n = startCast to endCast
  3.     set castName to the name of cast n
  4.     put "idx" into char 10 to 12 of castName
  5.     put castName
  6.     set readObject to FileIO(mnew, "read", "d:\abraddir\glossidx\" & castName)
  7.     set controlFile to readObject(mReadFile)
  8.     readObject(mdispose)
  9.     repeat with i = 1 to the number of lines in controlFile - 1
  10.       set start to value(item 1 of line i of controlFile)
  11.       set end to value(item 2 of line i of controlFile)
  12.       set the foreColor of char start to end of field n to 249
  13.     end repeat
  14.   end repeat
  15. end
  16.  
  17. on colorSet theCast, theWord
  18.   if the controlDown then
  19.     set the foreColor of word theWord of field theCast to 249
  20.   else
  21.     if the optionDown then
  22.       set the foreColor of word theWord of field theCast to 255
  23.     end if
  24.   end if
  25.   abort()
  26. end
  27.