Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating mailbox inside the mailbox



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: http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.