Scripting Mail: creating parent - child mailboxes

Hi,
I am a newbie to applescript and can not see how to make a mailbox inside another mailbox. I searched the forums and have seen this question asked but didn’t see any answers.

I tried:
tell application “Mail” to make new mailbox with properties {name:“Parent”}
tell application “Mail” to make new mailbox at mailbox (“Parent”) with properties {name:“Child”}

But that doesn’t work.

Do I need to ignore Mail and treat the mailboxes as folders and use the finder to make nested folders ? The docs say that the mailbox class can contain elements which are mailboxes (plus I can do this manually) I just can’t figure out how to treat a mailbox as a parent container and then populate it with children, each child a new mailbox.

Any help or hints would be appreciated.

Thanks,

Chris

Try this:

make new mailbox with properties {name:“parent name/child name”}

-N

Perfect Thanks!

I guess I was over thinking this one.

Chris