• 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
Re: Problem creating new mailbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem creating new mailbox


  • Subject: Re: Problem creating new mailbox
  • From: Mark Lawrence <email@hidden>
  • Date: Mon, 8 Jun 2009 09:39:05 +0100


On 5 Jun 2009, at 20:00, email@hidden wrote:



Message: 2 Date: Fri, 5 Jun 2009 11:21:42 +0100 From: Mark Lawrence <email@hidden> Subject: Problem creating new mailbox To: email@hidden Message-ID: <email@hidden> Content-Type: text/plain; charset="us-ascii"

I'm trying to automate the create of mailboxes and am failing
dismally.  The first piece of code shows that I can access the target
mailbox and retrieve the contents.
tell application "Mail"
	set supplierMailbox to mailbox "Suppliers" of mailbox "futuremedia"
of account "shared"
	set supplierMailbox to mailboxes in supplierMailbox
end tell

The next piece of code gives AppleScript Error Mail got an error:
AppleEvent handler failed.
tell application "Mail"
	set supplierMailbox to mailbox "Suppliers" of mailbox "futuremedia"
of account "shared"
	make new mailbox in supplierMailbox with properties {name:"test"}
end tell

I've tried google for answers but simply do not understand what I read
as I'm new to the mac and applescript.  Can someone please help before
the suicide rate goes up by one:)

Regards,

Mark Lawrence

Could someone please help, I'm getting it in the neck from my boss.

TIA.

Mark Lawrence

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Problem creating new mailbox
      • From: Barry Wainwright <email@hidden>
    • Re: Problem creating new mailbox
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Xcode and text field
  • Next by Date: Re: AppleScript After Launchd Job
  • Previous by thread: Problem creating new mailbox
  • Next by thread: Re: Problem creating new mailbox
  • Index(es):
    • Date
    • Thread