• 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
Re: AppleScript-Users Digest, Vol 12, Issue 547
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 12, Issue 547


  • Subject: Re: AppleScript-Users Digest, Vol 12, Issue 547
  • From: John Mitchell <email@hidden>
  • Date: Thu, 12 Nov 2015 16:16:59 +1100

Hi Brian

> Message: 4
> Date: Wed, 11 Nov 2015 19:10:03 +1100
> From: Brian Christmas <email@hidden>
> To: Applescript Users <email@hidden>
> Subject: Re: applescripting sub mailboxes in Mail
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> G’day all
>
> I posted on the Apple developer forums, and got an answer to my dilemma.
>
> The make new mailbox needs to be terminated with a slash. Also, creating nested folders individually is not necessary. As well, teasing  for the existence of folders need not be done
>
> tell application "Mail"
> 	activate
> 	#
> 	# 'Year 2015' is pre-existing Yosemite mailbox
> 	#
> 	try
> 		make new mailbox with properties {name:("Year 2015/11/2015 11 11/") as rich text}
> 	on error errmsg
> 		display dialog errmsg
> 	end try
> 	#
> 	# 'Year 2016' is new El Capitan mailbox
> 	#
> 	try
> 		make new mailbox with properties {name:("Year 2016/11/2016 11 11/") as rich text}
> 	on error errmsg
> 		display dialog errmsg
> 	end try
> end tell
>
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}

"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: AppleScriptObjC Problem?
  • Next by Date: AppleScript-ObjC Bridge - NSDictionary/Record Question
  • Previous by thread: Re: OSX 10.11.1 Notes – Get Selected Note
  • Next by thread: AppleScript-ObjC Bridge - NSDictionary/Record Question
  • Index(es):
    • Date
    • Thread