• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
applescripting sub mailboxes in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applescripting sub mailboxes in Mail


  • Subject: applescripting sub mailboxes in Mail
  • From: John Mitchell <email@hidden>
  • Date: Fri, 13 Nov 2015 08:35:16 +1100

Hi Chris

> On 13 Nov 2015, at 07:00 , email@hidden wrote:
>
> Subject: Re: applescripting sub mailboxes in Mail
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> On Nov 11, 2015, at 23:16, John Mitchell <email@hidden> wrote:
>> I can get two folders created, but not 3 on my 10.10.5 OsX
>>
>> make new mailbox with properties {name:("Bard/11/2015/") as rich text}
> ______________________________________________________________________
>
> Hey John,
>
> Let's get that back on the right thread.
>
> as rich text is not needed.
>
> Nor are the parentheses necessary.
>
> This works on my 10.11.1 system:
>
> tell application "Mail"
>  make new mailbox with properties {name:"Bard/11/2015/"}
> end tell
>
> But you'll have to try it to find out if those small changes make it work on 10.10.5.
>
> --
> Best Regards,
> Chris


your line copy & paste into SD:

tell application "Mail"
	try
		#make new mailbox with properties {name:("Burt/11/2015/") as rich text} --/2015 11 11/")}

		--Chris Stone version
		make new mailbox with properties {name:"Bard/11/2015/"}

	on error errMsg
		display dialog errMsg
	end try
end tell

but it still fails with "Mail got an error: AppleEvent handler failed."

regards


John


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Prev by Date: Re: applescripting sub mailboxes in Mail
  • Next by Date: Re: AppleScriptObjC Problem?
  • Previous by thread: applescripting sub mailboxes in Mail
  • Next by thread: Re: applescripting sub mailboxes in Mail
  • Index(es):
    • Date
    • Thread