home *** CD-ROM | disk | FTP | other *** search
- on textcopy
- if the platform contains "Mac" then
- mactextcopy()
- else
- openXLib("Xtras\filecopy")
- set fileName to the pathName & "text\" & the name of cast the mouseCast
- if fileName > EMPTY then
- set wFileName to doSaveAsDlg(the pathName & "text\" & the name of cast the mouseCast, "Word@*.rtf")
- if wFileName > EMPTY then
- set result to CopyFile(wFileName, fileName)
- put result
- end if
- end if
- closeXLib("Xtras\filecopy")
- end if
- end
-
- on mactextcopy
- openXLib(":Xtras:macxtra:filecopy")
- set fileName to the pathName & "text:" & the name of cast the mouseCast
- if fileName > EMPTY then
- put fileName
- set loc to "desktop folder:"
- set wFileName to doSaveAsDlg(loc & the name of cast the mouseCast, "word files@*.rtf")
- if wFileName > EMPTY then
- put wFileName
- set result to CopyFile(wFileName, fileName)
- put result
- end if
- end if
- closeXLib(":Xtras:macxtra:filecopy")
- abort()
- end
-