Re: Problem creating new mailbox
Re: Problem creating new mailbox
- Subject: Re: Problem creating new mailbox
- From: Barry Wainwright <email@hidden>
- Date: Tue, 09 Jun 2009 07:50:02 +0100
It appears that mail is unable to create new mail folders anywhere
other than in the local folder hierarchy (under 'on my computer')
there, you can create subfolders with the construction:
make new mailbox with properties {name: "test"}
make new mailbox with properties {name: "test/test2"}
--
Barry
On 8 Jun 2009, at 09:39, Mark Lawrence wrote:
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 (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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