• 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
Fwd: applescripting sub mailboxes in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: applescripting sub mailboxes in Mail


  • Subject: Fwd: applescripting sub mailboxes in Mail
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 17 Nov 2015 10:59:14 +1100


G’day again

Apple Engineering have contacted me yet again, with code suggestions that don’t work.

Engineering has provided the following feedback regarding this issue:

It's: make new mailbox at the beginning of mailboxes of mailbox "Bar".  You're missing the "mailboxes of" part.

Please let us know whether the issue is resolved for you by updating your bug report.


I’ve sent them a script that fails to create ANY new mailboxes. If anyone would like to test it and report back, I’d appreciate it.

Regards

Santa

tell application "Mail"
activate
try
make new mailbox with properties "Year 2016"
say "Mail box Year 2016 created."
on error errmsg
say "Mail box 2016 try one failed to be created"
end try
try
make new mailbox at beginning with properties "Year 2016"
say "Mail box Year 2016 created."
on error errmsg
say "Mail box 2016 try two failed to be created"
end try
try
make new mailbox at beginning of mailboxes of mailbox "On My Mac" with properties "Year 2016"
say "Mail box Year 2016 created."
on error errmsg
say "Mail box 2016 try three failed to be created"
end try
try
make new mailbox at beginning of mailboxes of mailbox "On My Mac" with properties "Year 2016/11"
say "Mail box Year 2016 created, sub mailbox 11 created"
on error errmsg
say "Mail box 2016 11 failed to be created"
end try
try
make new mailbox at beginning of mailboxes of mailbox "Year 2016/11" with properties {"2016 11 17"}
on error errmsg
say "Mail box 2016 11 17 failed to be created"
end try
end tell

 _______________________________________________
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

  • Follow-Ups:
    • Re: applescripting sub mailboxes in Mail
      • From: "Stockly, Ed" <email@hidden>
References: 
 >Re: applescripting sub mailboxes in Mail (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Another Weird AppleScript-ObjC Problem
  • Next by Date: Re: applescripting sub mailboxes in Mail
  • Previous by thread: Re: applescripting sub mailboxes in Mail
  • Next by thread: Re: applescripting sub mailboxes in Mail
  • Index(es):
    • Date
    • Thread