Mailing Lists: Apple Mailing Lists

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

creating mailbox inside the mailbox



Dear Apple friends ,

                  I am trying to create a mailbox inside a existing mailbox by using apple
script .As per the requirement script has to check the predefined standard names of
mailboxes in  in the existing mailbox , and if it is not there just create a mailbox in the
existing mailbox. I am trying to create it , but getting stuck with this error  - Mail got an
error: NSInternalScriptError . Is anybody having any solution or suggest me where I can get
solution , please help me in this case.

--this mailbox is at level one
set  parent_mailbox to "dxbgen" 
set child_mail_box to "jhon"
tell application "Mail"
set account_name to "IMAP Account"

tell account account_name
--trying to create the new mailbox
make new mailbox of mailbox parent_mailbox with properties{name:child_mail_box}

end tell

end tell

when I run this script , I got the following error :

Mail got an error: NSInternalScriptError

Please help me to get solution of this problem .

Thanks in advance


Best regards

krishna

Model: iMac
AppleScript: 1.10.6
Browser: Safari 417.9.2
Operating System: Mac OS X (10.4)



 _______________________________________________
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.