• 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: Scripting OSX Mail App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting OSX Mail App


  • Subject: Re: Scripting OSX Mail App
  • From: Olivier Destrebecq <email@hidden>
  • Date: Tue, 12 Feb 2002 11:53:41 -0600

here is something that works on my machine, notice that i do not look
for mailboxes by name as this does not seem to work, but once you got a
mailbox, you can always check that it is the one you want by looking at
its name
hope it helps, olivier


tell application "Mail"
activate
set currentMailbox to mailbox 1 of account "Personal Mailboxes"
display dialog "There are " & (count of message of
currentMailbox) & " message in " & mailbox name of currentMailbox
end tell

On Tuesday, February 12, 2002, at 07:44 AM, Douglas Wagner wrote:

> Hello:
> I'd like to communicate with anyone who has found a way to access,
> count and read messages, etc. from OSX Mail.
>
> In my experience, Mail returns either an error or crashes when I
> attempt to communicate with it via Applescript.
>
> I can't find any examples of Mail scripts on the net so I wonder if
> other's are having similar problems.
>
> DW
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Scripting OSX Mail App (From: Douglas Wagner <email@hidden>)

  • Prev by Date: Re: AppleScript 1.6, 1.7 and 1.8 speed issues
  • Next by Date: Newish AppleScript bug in Choose File Name
  • Previous by thread: Scripting OSX Mail App
  • Next by thread: Exit Repeat [Was: [Case Statements]]
  • Index(es):
    • Date
    • Thread