Title: Script to archive and delete
I’m trying to write a dumb little script that will move a message from my inbox (it’s an IMAP account)
into an archives folder ... I have rules that will move messages automatically into other folders that work fine, except that they leave copies in the IMAP “Deleted Items” folder. I could live with that same functionality (note that I give the messages the category “Delete” so that I can go back and manually remove them from the “Deleted Items” folder later), but I get a an error message when I get to the “duplicate i...” line.

tell application "Microsoft Entourage"
    set theItems to selection
   set deleteCategory to category "Delete"
    set archiveFolder to folder "Archives"
    repeat with i in the theItems
       if class of i is message or class of i is incoming message then
           set read status of i to read
           set category of i to deleteCategory
           duplicate i to archiveFolder
       end if
   end repeat
end
tell

The error message is: "Microsoft Entourage got an error: the message is online and this operation is not yet supported"

(OS X 10.2.4, Entourage 10.1.1 (2418))

--

----------------------------------------------------------------------------
Michael D. Johas Teener - [EMAIL PROTECTED] - http://xns.org/=Michael%20Teener

Reply via email to