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

Cannot re-create mailboxes


  • Subject: Cannot re-create mailboxes
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 09 Jul 2015 14:44:25 +1000

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

 _______________________________________________
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: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Mail, count of visible messages
  • Next by Date: Re: Cannot re-create mailboxes
  • Previous by thread: Re: Mail, count of visible messages
  • Next by thread: Re: Cannot re-create mailboxes
  • Index(es):
    • Date
    • Thread