Hi, hoping someone can help me. I am quite new to Applescript but was hoping that what I am trying to do would be simple. It appears it isn't.
I am using Applemail (on 10.9.3) and have three accounts. One is iCloud, one is Gmail and one is Exchange. The Exchange one is called "Work"
I have a mailbox within "Work" called "Prospects" and then within that a series of mailboxes for each client/prospect where I file messages.
I want an Applescript that will create one of these client/prospect sub-folders. Here's what I have:
It completes the 'set' part okay. However the 'make' command produces the following:
I have tried various different iterations of this all wuth the same result and have no idea where I am going wrong.
Not sure if it's relevant but my Library (my entire home directory) is on a separate disk to the OS itself. Running 10.9.3.
Any help would be greatly appreciated.
David
I am using Applemail (on 10.9.3) and have three accounts. One is iCloud, one is Gmail and one is Exchange. The Exchange one is called "Work"
I have a mailbox within "Work" called "Prospects" and then within that a series of mailboxes for each client/prospect where I file messages.
I want an Applescript that will create one of these client/prospect sub-folders. Here's what I have:
Code:
tell application "Mail"
set theMailbox to mailbox "Prospects" of account "Work"
make new mailbox at theMailbox with properties {name:"Foo inside Bar"}
end tell
It completes the 'set' part okay. However the 'make' command produces the following:
Code:
Result:
error "Mail got an error: AppleEvent handler failed." number -10000
I have tried various different iterations of this all wuth the same result and have no idea where I am going wrong.
Not sure if it's relevant but my Library (my entire home directory) is on a separate disk to the OS itself. Running 10.9.3.
Any help would be greatly appreciated.
David
Last edited by a moderator: