home *** CD-ROM | disk | FTP | other *** search
- on setpath apath
- openXLib("MovUtils.DLL")
- set pathName to apath
- delete char integer(the number of chars in pathName) of pathName
- if objectp(utilObj) then
- utilObj(mdispose)
- end if
- set utilObj to MovUtils(mnew)
- set result to value(utilObj)
- if result < 0 then
- alert("Error" && result && "trying to create the Object")
- exit
- end if
- if objectp(utilObj) then
- set result to utilObj(mSetDefaultPath, pathName)
- if result = -1 then
- alert("(" & pathName & ")" & "No such directory exists. Please try again...")
- exit
- end if
- else
- alert("Sorry...no object has been created")
- end if
- if objectp(utilObj) then
- utilObj(mdispose)
- end if
- closeXLib("MovUtils.DLL")
- end
-