home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global theImage, theImageList, theCaption
- setPuppets(1, 42, 0)
- setPuppets(13, 19, 1)
- createPath("graphic", theImage)
- set the fileName of cast 2 to string(the result)
- if voidp(theImageList) then
- set theImageList to theImage & RETURN
- else
- repeat with n = 1 to the number of lines in theImageList
- if string(line n of theImageList) = string(theImage) then
- delete line n of theImageList
- end if
- end repeat
- put theImage & RETURN after theImageList
- end if
- createPath("gcapt", theImage)
- openXLib("fileio.dll")
- set thetextfile to FileIO(mnew, "read", the result)
- if objectp(thetextfile) then
- set theCaption to thetextfile(mReadFile)
- thetextfile(mdispose)
- closeXLib("fileio.dll")
- else
- alert("Error in finding article")
- end if
- end
-