Re: Time to figure out what is going on... (fixed)
Re: Time to figure out what is going on... (fixed)
- Subject: Re: Time to figure out what is going on... (fixed)
- From: Glenn Sugden <email@hidden>
- Date: Mon, 22 Aug 2005 13:03:34 -0700
On Aug 22, 2005, at 11:55 AM, Matt Neuburg wrote:
tried this:
tell application "Mail" to activate
tell application "System Events"
tell application process "Mail"
click menu item "New Viewer Window" of menu 1 of menu bar item
"File" of
menu bar 1
end tell
end tell
Runs fine in the Script Menu. m.
Works for me too...
After monkeying around with the script, I narrowed the problem
down to:
tell application "Mail"
activate -- works
.
.
.
tell application "System Events"
tell application process "Mail"
click...
.
.
.
vs.
tell application "Mail"
.
.
.
tell application "System Events"
tell application process "Mail"
activate -- doesn't work
click...
.
.
.
So it looks like Mail does need to be "reactivated" to have the
front window (and therefore menu) available...
...and having an "activate" within the "tell process..." block
doesn't do squat.
In fact, to be honest, I'm not sure if it even makes sense to
have "activate" within that process block...
Thanks again for y'all's help,
::Glenn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden