• 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: Cannot re-create mailboxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot re-create mailboxes


  • Subject: Re: Cannot re-create mailboxes
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 09 Jul 2015 12:01:28 +0200


Le 09/07/2015 à 11:39, Brian Christmas <email@hidden> a écrit :

Thanks for the confirmation Yvan.

Seems to be a bug in Mail.

Regards

Santa


On 9 Jul 2015, at 7:00 pm, Yvan KOENIG <email@hidden> wrote:


Le 09/07/2015 à 06:44, Brian Christmas <email@hidden> a écrit :

G’day Scripters

In my app, I create new mailboxes my year/month/day, using Mail.app.

While checking the code, I deleted the new mailboxes, and now my code refuses to re-create them. There seems to be a ‘ghost’ of the old mailboxes stopping the handler.

Does anyone know how to fix this please? I’ve tried re-building and re-startying Mail.

Regards

Santa

property t : ""
set my t to "2015 06 09 _test ftpSaving"
set tt to (word -5 of my t & " " & word -4 of t & " " & word -3 of t)
set tempYearString to ("Year " & word -5 of my t as text)
set TempMonthString to word -4 of my t as text
tell application "Mail"
if not (exists mailbox tempYearString) then
make new mailbox with properties {name:tempYearString}
end if
set p to 9
delay 0.2
if not (exists mailbox TempMonthString of mailbox tempYearString) then
say 1
make new mailbox with properties {name:tempYearString & "/" & TempMonthString}
end if
if not (exists mailbox tt of mailbox TempMonthString of mailbox tempYearString) then
say 1
make new mailbox with properties {name:tempYearString & "/" & TempMonthString & "/" & tt}
end if
end tell

_


Hello Brian

When I tried to run your script under 10.10.4 (used in French) your script failed on the instruction :
make new mailbox with properties {name:tempYearString & "/" & TempMonthString}
with the message : error "Erreur dans Mail : Le gestionnaire AppleEvent a échoué." number -10000

The mailbox Year 2015 was available and I was able to remove it.
When I ran again the script I got the same behavior.

I made several attempts but none of them allowed me to build the mailbox 06 in the mailBox Year 2015.

Yvan KOENIG (VALLAURIS, France) jeudi 9 juillet 2015 10:59:57



If it's a bug it resemble to the one striking in the import feature of Mail.
This one import only main mailboxes content.
It doesn't allow us to import the content of sub-mailboxes like mailbox 06 of mailbox Year 2015.

Yvan KOENIG (VALLAURIS, France) jeudi 9 juillet 2015 12:01:13



 _______________________________________________
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: Cannot re-create mailboxes
      • From: Brian Christmas <email@hidden>
References: 
 >Cannot re-create mailboxes (From: Brian Christmas <email@hidden>)
 >Re: Cannot re-create mailboxes (From: Yvan KOENIG <email@hidden>)
 >Re: Cannot re-create mailboxes (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Cannot re-create mailboxes
  • Next by Date: Re: Cannot re-create mailboxes
  • Previous by thread: Re: Cannot re-create mailboxes
  • Next by thread: Re: Cannot re-create mailboxes
  • Index(es):
    • Date
    • Thread