home *** CD-ROM | disk | FTP | other *** search
- on fixnames7 start, end
- set lastname to EMPTY
- set Error to EMPTY
- repeat with i = start to end
- set tmpname to string(the name of cast i)
- if word 2 of tmpname = "head" then
- set name to word 1 of tmpname
- if name <> lastname then
- set tmpnum to Bsearch(name, "MakerList")
- end if
- if tmpnum > 0 then
- put "0ld " && tmpname
- set tmpname to item 2 of line value(tmpnum) of field "MakerList" & "-head"
- set the name of cast i to tmpname
- put "new" && tmpname
- else
- put "error " && tmpname
- put "error" && tmpname & RETURN after Error
- end if
- else
- if 1 = 1 then
- put "0ld " && tmpname
- set the itemDelimiter to "-"
- set name to item 2 of tmpname
- set the itemDelimiter to ","
- if lastname <> name then
- set tmpnum to Bsearch(name, "MakerList")
- end if
- if tmpnum = "0" then
- put "error" && tmpname
- put "error" && tmpname & RETURN after Error
- else
- set the itemDelimiter to "-"
- set tmpname to item 1 of tmpname
- set the itemDelimiter to ","
- set tmpname to item 2 of line value(tmpnum) of field "MakerList" & "-" & tmpname
- end if
- set the name of cast i to tmpname
- put "new" && tmpname
- end if
- end if
- set lastname to name
- end repeat
- put Error
- end
-
- on fixnames3 start, end
- repeat with i = start to end
- set tmpname to string(the name of cast i)
- put "0ld " && tmpname
- set tmpname to tmpname && "name"
- set the name of cast i to tmpname
- put "new" && tmpname
- end repeat
- end
-
- on fixnames8 start, end
- repeat with i = start to end
- set tmpname to string(word 1 of the name of cast i)
- put "0ld " && tmpname
- set tmpname to word 1 of tmpname
- set tmp to NameToNum(tmpname)
- if (tmp = 1) and (tmpname <> "Ali") then
- put "error " & tmpname
- next repeat
- end if
- set tmpname to tmp & ".name2"
- set the name of cast i to tmpname
- put "new" && tmpname
- end repeat
- end
-
- on fixnames5 start, end
- repeat with i = start to end
- set tmpname to string(the name of cast i)
- if not (tmpname contains "(") then
- next repeat
- next repeat
- end if
- put "0ld " && tmpname
- set the itemDelimiter to "("
- set newname to item 2 of tmpname
- set the itemDelimiter to ")"
- set newname to item 1 of newname
- set the itemDelimiter to "-"
- set tmpname to item 1 of tmpname & "-" & newname
- set the name of cast i to tmpname
- put "new" && tmpname
- end repeat
- end
-
- on fixnames start, end
- repeat with i = start to end
- set tmpname to string(the name of cast i)
- put "0ld " && tmpname
- set the itemDelimiter to "-"
- set tmpname to item 1 to 2 of tmpname
- set the itemDelimiter to ","
- set the name of cast i to tmpname
- put "new" && tmpname
- end repeat
- end
-
- on fixnames2 start, end
- repeat with i = start to end
- set tmpname to string(the name of cast i)
- if char the number of chars in tmpname of tmpname = " " then
- put "0ld " && tmpname
- delete char the number of chars in tmpname of tmpname
- put "new" && tmpname
- end if
- set the name of cast i to tmpname
- end repeat
- end
-
- on fixnames4 start, end
- repeat with i = start to end
- set tmpname to string(the name of cast i)
- if word 1 of tmpname = "head" then
- delete word 1 of tmpname
- set tmpname to tmpname && "head"
- put "new " && tmpname
- end if
- end repeat
- end
-
- on fixnames6 start, end
- set count to 1
- repeat with i = start to end
- set tmpname to "rolette" & count
- set the name of cast i to tmpname
- put "new" && tmpname
- set count to count + 1
- end repeat
- end
-