• 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
moving messages in Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

moving messages in Mail.app


  • Subject: moving messages in Mail.app
  • From: <email@hidden>
  • Date: Thu, 22 Apr 2004 17:10:02 +0200

Hello,

I would like to create mailboxes in Mail.app, create mails and file
them into the designated mailboxes. Unfortunately i cannot get the
move-command to work. The Mail-Dictionary says the following:


Quote:
move reference -- the message(s) to move
to mailbox -- The new mailbox for the message(s).



So i believe the code below should work. But I get an
NSInternalScriptError.

What's wrong? How can i get it to work?

Thank you.

jacques



Code:


set mboxName to "testMailBox"
tell application "Mail"
make new mailbox with properties {name:mboxName}
set mbox to mailbox named mboxName

set newMessage to make new outgoing message with properties
{subject:"subject", content:"body", visible:true}
set mbox to mailbox named mboxName

move newMessage to mbox
end tell
_______________________________________________
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: Automating System Profiler
  • Next by Date: Re: Get iTune File Track by Alias
  • Previous by thread: Re: [genuine] Re: Automating System Profiler
  • Next by thread: Re: moving messages in Mail.app
  • Index(es):
    • Date
    • Thread