I am trying to make it easy for our end users to archive their mail. I would like to write and apple script to do so. I am been looking around and so far have found nothing that would do this so i started to write my own. here is what i have so far
tell application "Microsoft Entourage"
export to archive
Yes i have seen it, but i am looking for a script so i can customize it as i need it. I think that it is a great product, but much more then when i need. i just need a simple archive backup.
This is what I am talking about. I have an XServe with a secure folder with the same name as the users’ home folder. This is a rough cut, but at least the idea is here, somewhere.
Levon
tell application "Finder"
set userName to displayed name of home
mount volume "afp://your server/" & userName
set backupFolder to "Volumes:" & userName & ":Entourage Backup:"
--delete every file of backupFolder
end tell
activate application "Microsoft Entourage"
tell application "System Events"
tell process "Entourage"
click menu item "Export..." of menu 1 of menu bar item "File" of menu bar 1
click button 4 of window "Export"
click button 4 of window "Export"
click button "Continue" of window 1
--set value of text field 1 of window "Save" to userName & ".rge"
--location
click button "Done" of window "Export"
end tell
end tell
Model: Dual 2.3GHz G5
AppleScript: 2.1.1/Script Debugger 4
Browser: Firefox 2.0.0.6
Operating System: Mac OS X (10.4)