Re: Scripting OSX Mail App
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.