home *** CD-ROM | disk | FTP | other *** search
- on CheckDriveW theFileName
- global n
- repeat with n = 66 to 90
- set drive to numToChar(n)
- set thisPath to string(drive & ":\" & theFileName)
- set myFile to FileIO(mnew, "read", thisPath)
- if objectp(myFile) then
- myFile(mdispose)
- return drive & ":" & theFileName
- exit
- end if
- end repeat
- alert("Please put Blender in CD-ROM drive and try again!")
- end
-
- on CheckDriveM theFileName
- global TEST
- set TEST to 0
- set TEST to getNthFileNameInFolder("BLENDER:" & theFileName, 1)
- if TEST <> 0 then
- return "BLENDER:" & theFileName
- exit
- end if
- set TEST to getNthFileNameInFolder("BLENDER5:" & theFileName, 1)
- if TEST <> 0 then
- return "BLENDER5:" & theFileName
- exit
- end if
- set TEST to getNthFileNameInFolder("BLENDER4:" & theFileName, 1)
- if TEST <> 0 then
- return "BLENDER4:" & theFileName
- exit
- end if
- set TEST to getNthFileNameInFolder("BLENDER3:" & theFileName, 1)
- if TEST <> 0 then
- return "BLENDER3:" & theFileName
- exit
- end if
- set TEST to getNthFileNameInFolder("BLENDER2:" & theFileName, 1)
- if TEST <> 0 then
- return "BLENDER2:" & theFileName
- exit
- end if
- set TEST to getNthFileNameInFolder("BLENDER1:" & theFileName, 1)
- if TEST <> 0 then
- return "BLENDER1:" & theFileName
- exit
- end if
- return 0
- end
-