C
ctwise
Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel
Email Client: Exchange
I'm trying to put together a very simple Applescript program to export just my mail. I want the exported mail to be deleted. From the Dictionary and web sources I believe this should work:
tell application "Microsoft Entourage"
set theHomeDir to the path to the home folder
set theCurrentDate to the current date
set theExportArchiveName to the (year of theCurrentDate) & ((month of theCurrentDate) as integer) & (day of theCurrentDate) & "_" & (time of theCurrentDate) & "_EntourageArchive.rge" as text
set theArchivePath to (theHomeDir as text) & (theExportArchiveName as text)
export archive to theArchivePath item types mail items with delete
end tell
This does export just the mail to the appropriate location but it doesn't delete the mail it exported. Can anyone tell me what I'm doing wrong.
Thanks!
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel
Email Client: Exchange
I'm trying to put together a very simple Applescript program to export just my mail. I want the exported mail to be deleted. From the Dictionary and web sources I believe this should work:
tell application "Microsoft Entourage"
set theHomeDir to the path to the home folder
set theCurrentDate to the current date
set theExportArchiveName to the (year of theCurrentDate) & ((month of theCurrentDate) as integer) & (day of theCurrentDate) & "_" & (time of theCurrentDate) & "_EntourageArchive.rge" as text
set theArchivePath to (theHomeDir as text) & (theExportArchiveName as text)
export archive to theArchivePath item types mail items with delete
end tell
This does export just the mail to the appropriate location but it doesn't delete the mail it exported. Can anyone tell me what I'm doing wrong.
Thanks!