Somehow be able to use AS to send a PW to unlock an App

I lock Mail. I also use Carbon Copy CLoner to do rotated backups. I also perform a few scripts within CCC, a pre script that tells all running apps (except for CCC and the Finder) to quit before it does it's backup. That way all programs that are running that use Espionage have the chance to quit and have their data folders re-locked. Then CCC does its backup, then runs a post script that emails me the log report for the backup so I can take a look at its operations when I'm at work (the backup occurs while I'm away). You can see where I'm going with this: When the post script attempts to open Mail it will inevitably get the dialog box asking for a password and this is where it will fail.
I was wondering if I could embed within the Applescript to pass a password to Espionage's Dialog so as to let Mail run It's kind of like how you can mount shared volumes with an AS by embedding the username and password within the script.
I know Espionage doesn't currently offer such a thing, but I cannot wrap my head around how this could even be achieved without leaving a huge security whole (unless I script some Apple Events that type into the dialog box. But I'm not even sure the Espionage password entry dialog box is standard OS X fair).
I guess the other option would be to download another email app like Thunderbird and maybe script it if it has a scriptable library. I was hoping to avoid this.
I know Espionage has built-in backups but I have to stick to CCC as I need bootable clones.
I was wondering if I could embed within the Applescript to pass a password to Espionage's Dialog so as to let Mail run It's kind of like how you can mount shared volumes with an AS by embedding the username and password within the script.
I know Espionage doesn't currently offer such a thing, but I cannot wrap my head around how this could even be achieved without leaving a huge security whole (unless I script some Apple Events that type into the dialog box. But I'm not even sure the Espionage password entry dialog box is standard OS X fair).
I guess the other option would be to download another email app like Thunderbird and maybe script it if it has a scriptable library. I was hoping to avoid this.
I know Espionage has built-in backups but I have to stick to CCC as I need bootable clones.