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

Re: applescripting sub mailboxes in Mail


  • Subject: Re: applescripting sub mailboxes in Mail
  • From: Yvan KOENIG <email@hidden>
  • Date: Tue, 17 Nov 2015 08:53:44 +0100



Here is the returned events log on my machine.

tell application "Mail"
activate
delete mailbox "Year 2016"
make new mailbox with properties {name:"Year 2016"}
say "Mail box Year 2016 created."
«event ascrgdut»
say "Mail box Year 2016 created."
end tell
tell current application
say "Mail box Year 2016 created."
end tell
tell application "Mail"
make new mailbox at beginning of every mailbox of mailbox "On My Mac/Year 2016" with properties {name:"Year 2016/11"}
say "Mail box 2016 11 try 2 failed to be created"
end tell
tell current application
say "Mail box 2016 11 try 2 failed to be created"
end tell
tell application "Mail"
make new mailbox at beginning of every mailbox of mailbox "Year 2016" with properties {name:"Year 2016/11"}
say "Mail box 2016 11 try 3 failed to be created"
end tell
tell current application
say "Mail box 2016 11 try 3 failed to be created"
end tell
tell application "Mail"
make new mailbox at mailbox "Year 2016" with properties {name:"Year 2016/11"}
say "Mail box 2016 11 try 4 failed to be created"
end tell
tell current application
say "Mail box 2016 11 try 4 failed to be created"
end tell
tell application "Mail"
make new mailbox with properties {name:"Year 2016/11"}
say "Mail box 2016 11 try 5 failed to be created"
end tell
tell current application
say "Mail box 2016 11 try 5 failed to be created"
end tell
tell application "Mail"
make new mailbox at beginning of every mailbox of mailbox "Year 2016/11" with properties {"2016 11 17"}
say "Mail box 2016 11 17 try 6 failed to be created"
end tell
tell current application
say "Mail box 2016 11 17 try 6 failed to be created"
end tell

Mailbox 2016 was created but every other instructions failed.
It seems that it would have been a good idea to type « tell me to «  before « say ».

Yvan KOENIG (VALLAURIS, France) mardi 17 novembre 2015 08:53:39



 _______________________________________________
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

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

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