Re: Time to figure out what is going on... (results)
Re: Time to figure out what is going on... (results)
- Subject: Re: Time to figure out what is going on... (results)
- From: David Marshall <email@hidden>
- Date: Mon, 22 Aug 2005 19:25:48 -0400
On Mon, 22 Aug 2005 11:55:15 -0700, Matt Neuburg wrote:
I 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.
I did exactly the same, with the same result. However, when I tried
the equivalent excerpt from Glenn's script--
tell application "System Events"
tell process "Mail"
activate
click menu item "New Viewer Window" of
menu 1 of menu bar item "File" of menu bar 1
end tell
end tell
--that _also_ worked fine from the Script Menu; the only difference
was that in the first case, the script ended with Mail frontmost, and
in the second case, the frontmost app prior to the running of the
script remained frontmost (actually, I believe Mail came to the front
for the blink of an eye, mid-script).
- - - - -
Dave
_______________________________________________
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