home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global theImage, theImageList, theCaption
- setPuppets(1, 42, 0)
- setPuppets(13, 19, 1)
- cursor(4)
- createPath("image", item 1 of 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
- if the number of lines in theImageList > 76 then
- delete line 1 of theImageList
- end if
- end if
- createPath("caption", char 1 to 8 of item 1 of theImage & ".cpt")
- openXLib("fileio")
- set thetextfile to FileIO(mnew, "read", the result)
- if objectp(thetextfile) then
- set theCaption to thetextfile(mReadFile)
- thetextfile(mdispose)
- closeXLib("fileio")
- else
- set theCaption to "caption error - missing or incorrectly named"
- end if
- cursor(-1)
- end
-