Re: Problem creating new mailbox
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