"export archive" doesn't delete

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!
 
W

William Smith [MVP]

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:
[snip]

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.

I haven't tested this but I also see in the dictionary another command
that you may need to add after "with delete".

[retain boolean] : retain records that are also in another category or
project (default is true; ignored if delete is false or if no category
or project is specified)

Hope this helps!

--

bill

Entourage Help Page <http://entourage.mvps.org/>
Entourage Help Blog <http://blog.entourage.mvps.org/>
YouTalk <http://nine.pairlist.net/mailman/listinfo/youtalk>
Twitter: follow <http://twitter.com/meck>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top