Title: Re: Avoiding database corruption?
On 8/6/04 1:18 am, "Norman W. Ferguson" <[EMAIL PROTECTED]> wrote:

on 6/7/04 4:37 PM, Barry Wainwright at [EMAIL PROTECTED] wrote:

> If you are going to back up the database, make sure the script quits all
> office apps AND the database Daemon (tell app "Microsoft Database Daemon" to
> quit) before you take the copy. Taking a copy with the daemon still running
> is likely to create an incomplete copy because file buffers in the daemon
> have not been written back to disk.
>

So, Barry, if I understand you correctly, my script which quits Entourage2004 before my nightly backup which reads:

tell application "Microsoft Entourage"
    repeat while connection in progress is true
       delay 1
    end repeat
   quit
end
tell

:should really read:

tell application "Microsoft Entourage"
    repeat while connection in progress is true
       delay 1
    end repeat
   quit
end
tell
tell
application "Microsoft Database Daemon"
    quit
end
tell



Since I don’t normally run other Office apps overnight, I’m not going to worry about them.

Yes, that would work OK, but if an office app was running, it would hit errors with the daemon quit. It wouldn’t hurt to add these lines:

tell application "Finder" to set theApps to name of every process
if
{"microsoft Entourage"} is in theApps then tell application "Microsoft Entourage" to quit
if
{"microsoft Word"} is in theApps then tell application "Microsoft Word" to quit
if
{"microsoft Excel"} is in theApps then tell application "Microsoft Excel" to quit
if
{"microsoft Powerpoint"} is in theApps then tell application "Microsoft Powerpoint" to quit
if
{"microsoft Messenger"} is in theApps then tell application "Microsoft Messenger" to quit

--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
        <http://www.entourage.mvps.org/>

Reply via email to