• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Copy messages in mail.app to a second mailbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copy messages in mail.app to a second mailbox


  • Subject: Copy messages in mail.app to a second mailbox
  • From: "Husson, Michael" <email@hidden>
  • Date: Wed, 9 Oct 2002 23:24:34 -0400

I am stuck with a simple applescript which, although generating no errors,
does not produce the desired result of copying selected message(s) to a
second mailbox. My basic purpose is to keep simultaneous copies of selected
mail on my IMAP server as well as my iMac by selecting the message, copying
it to one mailbox on my iMac, and moving the original to a different mailbox
folder on the IMAP server. The following script is the initial step, which
isn't getting anywhere.

tell application "Mail"
set theSelectedMessages to the selection
repeat with eachMessage in theSelectedMessages
duplicate eachMessage to mailbox "Archive"
end repeat
end tell

The event log generates the following:
copy message x of mailbox "INBOX" of account myaccount to mailbox "Archive"

However, these messages never appear in the mailbox "Archive"

What am I doing wrong?

Thanks for any help regarding this.

Michael Husson
Department of Pathology
Pennsylvania Hospital
Philadelphia, PA
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: My soul is tormented by Quark (I think)
  • Next by Date: Can Network Control pane for OSX be scriptable?
  • Previous by thread: Unsuccessful copy mail message script
  • Next by thread: Re: Copy messages in mail.app to a second mailbox
  • Index(es):
    • Date
    • Thread