Re: creating mailbox inside the mailbox
Re: creating mailbox inside the mailbox
- Subject: Re: creating mailbox inside the mailbox
- From: John M <email@hidden>
- Date: Sun, 23 Jul 2006 11:17:14 +0100
Hi,
I think you need to specify the path to the mailbox in the name, like
"dxbgen/jhon".
You also say the mailbox is "level one", are you sure it is contained
by the account.
Try this:
Applescript:
------------
--this mailbox is at level one
set parent_mailbox to "dxbgen"
set child_mail_box to "jhon"
tell application "Mail"
--trying to create the new mailbox
-- Check to see if this mailbox does not exist.
if not (exists mailbox (parent_mailbox & "/" & child_mail_box)) then
-- If it doesn't exist, make it.
make new mailbox with properties {name:parent_mailbox & "/" &
child_mail_box}
end if
end tell
------------
Best wishes
John M
www.nhoj.co.uk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden