Re: Write to file
Re: Write to file
- Subject: Re: Write to file
- From: hciR nellA <email@hidden>
- Date: Tue, 10 Apr 2001 01:51:23 -0800
this will get you started
on ErrorLog(p, msg)
-- set date and hour globally, remove 06Jan2001
-- set gDate to DateTime "%m/%d/%y"
-- set gHour to DateTime "%H"
set theDate to +event AkusDtmQ; given +class ForM;:"%m/%d/%y %h" --
requires Akua
try
set fErrRef to open for access file p with write permission
set feof to get eof fErrRef
write (theDate & " " & ,
msg & return) to fErrRef starting at feof + 1
close access fErrRef
delay 1
on error errMsg number errNum
PlayAlert(8, msg)
end try
end ErrorLog
On Tuesday, April 10, 2001, at 12:40 AM, Jimmy hxiby wrote:
I have a problem with a back-up system I'm making. It is pretty simple.
On every Mac we use we have a folder, where our work is saved. This
folder
is copied to one of our serverdisk, when we leave work. It is then
backuped
at night.
I have made an applescript, which copies the folder to the server and
shutdowns the mac. Pretty simple. Now I would like to have a log-file of
what has been copied and when. So I can have a text-file in which all
the
content of the copied folder is listed and with a date for the day it
has
been copied. The next days information shall then be added at the
bottom of
the text-file.
- hcir
mailto:email@hidden
Made with a Mac!