[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hypercard Question



In article <199401152053.PAA13705@bottom.magnus.acs.ohio-state.edu>, Steven E Nash writes...
> 
> I was wondering if there is someone out there who has an xcmd or
> something that will allow me to save the text in one of my hypercard
> stacks to a text file or  even an applewoks file.  I have my address in
> a Hypercard stack and I have no  way to save them as a text file so I
> can print them out.

    Just use the following Hypertalk fragment:

open "/mydisk/myfile"
write field "field1" to file "/mydisk/myfile"
write field "field2" to file "/mydisk/myfile"
[...]
close "/mydisk/myfile"

    In the intervening [...], you can do whatever else you need to do
(insert returns in the file, go to the next card, etc.)  This is all
documented in the "Hypertalk Help" stack.
-- 
Brian Tao:: taob@io.org (Internex Online, 416-363-3783, 27 lines, v.32bis)
::::::::::: 90taobri@wave.scar.utoronto.ca (University of Toronto, 9T4)