• 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
Mail: Move message to another mailbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail: Move message to another mailbox


  • Subject: Mail: Move message to another mailbox
  • From: Tom Tidland <email@hidden>
  • Date: Tue, 25 Feb 2003 18:03:35 -0500

On Monday, February 24, 2003, at 09:54 PM, Tom Tidland wrote:

I wanted use applescript to perform a very simple operation...

Move a message from one mailbox to another mailbox.

I spent 6 hours trying to do this.

I failed, and felt very frustrated with the Mail dictionary


Michelle wrote back...

I just attempted this, never having tried it before. it took me about five minutes.

tell application "Mail"
set foo to the selected messages of message viewer 1
set bar to item 1 of foo
set the mailbox of bar to mailbox "aaa"
end tell

It worked as expected.

--Michelle


Tom wrote to Michelle...


Am I supposed to consider this an insult?

"set foo" ?

The point I was making is that using the mail dictionary command "move"

One would think the code would be...

move message at mailbox "name" to mailbox "other_name"

As move is in the dictionary. foo is not. Neither is bar.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Mail: Move message to another mailbox
      • From: John Delacour <email@hidden>
    • Re: Mail: Move message to another mailbox
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Scripting Mail:get selection
  • Next by Date: Re: Scripting Mail:get selection
  • Previous by thread: Re: Freaky record access bug
  • Next by thread: Re: Mail: Move message to another mailbox
  • Index(es):
    • Date
    • Thread