The following applescript can be run by SuperDuper just before backup to
Quit PowerMail, and save any open messages. 

Quit_PowerMail_If_Running_Save_Drafts.applescript
------------------------------------------------

set targetApp to "PowerMail"
tell application "System Events"
        set processExists to exists process targetApp
end tell


if processExists is true then
        tell application "PowerMail"
                repeat with i from 1 to (count of windows)
                        try
                                if window i is modified then
                                        close window i with saving
                                end if
                        end try
                end repeat
                quit
        end tell
end if
------------------------------------------------

Hope this helps.

Best,
 Dave Nathanson
 Mac Medix

in reply to ([EMAIL PROTECTED]), Rick Lecoat's message of 6:32
AM, 11/12/07

>Superduper can run a script prior to backup that could deal with the
>shutting down of PM,


Reply via email to