home *** CD-ROM | disk | FTP | other *** search
- property target
-
- on new me
- set target to the movieName
- set numChars to the number of chars in target
- set targetCheck to char numChars - 3 to numChars of target
- case targetCheck of
- ".exe", ".dir", ".dxr", ".eap":
- delete char numChars - 3 to numChars of target
- end case
- end
-
- on doAction me
- global gMainPath, gPathDelimiter
- cursor(4)
- if not gMainPath then
- checkMainPath()
- doAction(me)
- end if
- if the machineType = 256 then
- set cdDrive to CheckDrive("Hrwimp.id")
- else
- set cdDrive to "HRW IMAPS"
- if not FileExists("HRW IMaps:Hrwimp.id") then
- alert("You must insert the HRW IMaps CD-ROM to run this program.")
- quit()
- end if
- end if
- if target = "start" then
- go(1, cdDrive & gPathDelimiter & target)
- else
- go(1, cdDrive & gPathDelimiter & target & gPathDelimiter & target)
- end if
- end
-