home *** CD-ROM | disk | FTP | other *** search
- global colorauthoringpath
- global MoveFileOne
- global MoveFileTwo
- global MovePathOne
- global MovePathTwo
- if there is a window movefileone then close window movefileone
- if there is a window movefiletwo then close window movefiletwo
- put empty into MovePathOne
- put empty into MovePathTwo
- global RenameFileName
- global RenamefilePath
- if there is a window RenameFileName then close window RenameFileName
- showdialog 1, "504","Rename resources in this stack or in another file (of any type)?" ,"True"
- if the result is "2" then do restext("TEXT", "Exit", colorauthoringpath)
- if the result is "1" then
- put the long name of this stack into RenameFileName
- delete word 1 of RenameFileName
- delete char 1 of RenameFileName
- delete the last char of RenameFileName
- put renamefilename into renamefilepath
- put "Rename: " before char 1 of RenameFileName
- if the short name of this stack is "Resgenie‚Ñ¢" then
- showdialog 1, "503","Please use Resedit to edit these files. Sorry, but it's for your own good!" ,"True"
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if
- put FullResList("T=ALL", "O=TNIS", "W=" & renamefilepath) into resdata
- if word 1 of resdata is "Error" then
- answer resdata
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if
- set cursor to watch
- do sort resdata
- if the number of lines of resdata is 1 then put return & " " after line 1 of resdata
- do Listoid RenameFileName, resdata, "one","Rename:","black,yellow", "Chicago", "12", "0", "250, 10"
- end if
- if the result is "3" then
- answer file "Rename resources in any file:"
- if it is empty then do restext ("TEXT", "Exit", colorauthoringpath)
- put it into RenamefilePath
- put RenamefilePath into process
- set cursor to watch
- put FullResList("T=ALL", "O=TNIS", "W=" & RenamefilePath) into resdata
- if word 1 of resdata is "Error" then
- answer resdata
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if
- do sort resdata
- put the last char of process into RenameFileName
- delete last char of process
- repeat until it is ":"
- get the last char of process
- if it is not ":" then put it before char 1 of RenameFileName
- delete the last char of process
- end repeat
- if RenameFileName is "Resgenie‚Ñ¢" then
- showdialog 1, "503","Please use Resedit to edit these files. Sorry, but it's for your own good!" ,"True"
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if
- put "Rename: " before char 1 of RenameFileName
- if the number of lines of resdata is 1 then put return & " " after line 1 of resdata
- do Listoid RenameFileName, resdata, "one","Rename:","black,yellow", "Chicago", "12", "0", "250, 10"
- end if