Re: System Events and Mail Redux
Re: System Events and Mail Redux
- Subject: Re: System Events and Mail Redux
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 25 Dec 2002 21:07:44 -0800
On 12/25/02 8:54 PM, "Jon Rosen" <email@hidden> wrote:
>
Oops. Never mind. I discovered that "Enable Access for Assistive
>
Devices" somehow became unselected. I'm still curious to know if System
>
Events should actually be a login item or not.
>
To actually get Mail to get new mail, you seem to have to put it in the
front (which is what I would have expected). There's no error when running
from script Editor in front, but nothing happens here. This works:
tell application "System Events"
tell process "Mail"
set frontmost to true
click menu item "Get New Mail" of menu "Mailbox" of menu bar 1
end tell
end tell
--
Paul Berkowitz
_______________________________________________
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.