home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global PathHD, PathCD
- set PathHD to the pathName
- set PathCD to PathCDROM()
- set PathProgram to PathCD & "Program"
- add(the searchPath, PathProgram)
- if the machineType = 256 then
- set Sep to "\"
- else
- set Sep to ":"
- end if
- set PathProgram to PathProgram & Sep
- end
-
- on PathCDROM
- if the machineType = 256 then
- repeat with i = 67 to 90
- set lecteur to numToChar(i) & ":\"
- set gPathCDROM to lecteur & "PROGRAM\MEDIA"
- if getNthFileNameInFolder(gPathCDROM, 1) <> EMPTY then
- exit repeat
- end if
- end repeat
- if i > 90 then
- alert("Inserire il Cd nel lettore")
- quit()
- end if
- else
- set gPathCDROM to "Cani & Cani:PROGRAM:MEDIA:"
- if getNthFileNameInFolder(gPathCDROM, 1) = EMPTY then
- alert("Inserire il Cd nel lettore")
- quit()
- else
- set lecteur to "Cani & Cani:"
- end if
- end if
- return lecteur
- end
-