home *** CD-ROM | disk | FTP | other *** search
/ GU 15 - Background Photo Collection - Hanabi / gu15.iso / pc / browser.exe / browser.DXR / 00042.ls < prev    next >
Encoding:
Text File  |  1996-09-12  |  600 b   |  23 lines

  1. on chageCName n, m
  2.   repeat with i = n to m
  3.     set the name of cast i to "8240" & the name of cast i
  4.   end repeat
  5. end
  6.  
  7. on relacecname n, m, old, new
  8.   repeat with i = n to m
  9.     put the name of cast i
  10.     set nm to the name of cast i
  11.     set st to offset(old, nm)
  12.     if 0 < st then
  13.       if st = 1 then
  14.         set nm to new & char st + length(old) to the number of chars in nm of nm
  15.       else
  16.         set nm to char 1 to st - 1 of nm & new & char st + length(old) to the number of chars in nm of nm
  17.       end if
  18.       set the name of cast i to nm
  19.       put "->" && nm
  20.     end if
  21.   end repeat
  22. end
  23.