home *** CD-ROM | disk | FTP | other *** search
- on getDrivePC
- set curpath to the moviePath
- set olddelimiter to the itemDelimiter
- set the itemDelimiter to "\"
- set drive to item 1 of curpath & "\"
- set the itemDelimiter to olddelimiter
- return drive
- end
-
- on getDriveMac
- set curpath to the moviePath
- set olddelimiter to the itemDelimiter
- set the itemDelimiter to ":"
- set drive to item 1 of curpath & ":"
- set the itemDelimiter to olddelimiter
- return drive
- end
-
- on checkFile
- global myfile
- set myfile to new(xtra("fileio"))
- set textName to the pathName & "browser.txt"
- openFile(myfile, textName, 0)
- if voidp(textName) then
- selectWeb()
- else
- delete(myfile)
- selectWeb()
- end if
- end
-
- on selectWeb
- global myfile
- set myfile to new(xtra("fileio"))
- set fileName to displayOpen(myfile)
- put fileName into field "browserSelect"
- set myfile to 0
- set myfile to new(xtra("fileio"))
- set textName to the pathName & "browser.txt"
- createFile(myfile, textName)
- set vWeb to field "browserSelect"
- openFile(myfile, textName, 0)
- writeString(myfile, vWeb)
- closeFile(myfile)
- set myfile to 0
- end
-