Re: tab delimeted log file
Re: tab delimeted log file
- Subject: Re: tab delimeted log file
- From: Sander Tekelenburg <email@hidden>
- Date: Sat, 7 Apr 2001 02:39:55 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 18:16 -0400 UTC, on 06/04/2001, Brian wrote:
>
Manu thanks to everyone for the kind help.
>
>
here's the (mostly) working script I ended up with. I say mostly because:
>
>
I haven't yet figured out how to debug the NotMoved handler (is it as
>
simple as changing the exists queries to True for testing and reverting to
>
False
>
for the deployed production script?)
That would be a possible route to take, yes. If you do that, then NotMoved
will be a list of all the files that were in fact copied. You can compare
that with the ToBeMoved list to see if there are differences between the 2.
>
Nor have I figured out how to write both the ToBeMoved values and the
>
NotMoved values to the same log file.
You can either concatenate them, for example like this:
set LogText to ToBeMoved & return * return * NotMoved
(* placed 2 retunrs in between bot hlists for readability of the log *)
And then write LogText to your log file.
Or you can write each list to your log separately:
write ToBeMoved to myLog
write NotMoved to my log starting at eof
Note that in the latter case you'll need to specify where in the file the
second list must be written to. If you don't, it will default to writing it
at the start of the file which would of course overwrite the first list.
("starting at eof" means "start writing at the end of the file.)
HTH
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBOs5h2OsywKfXgqKdEQJrfACfRUNUzpkl51hc3zaV+wLQ9Uwm7mIAoI3A
vKmqcOr12vv4VOlFKfAFKdkN
=726D
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <
mailto:email@hidden>
Web site at <
http://www.euronet.nl/~tekelenb/>
Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers support Macs!"