• 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: Time to figure out what is going on... (fixed)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Time to figure out what is going on... (fixed)
      • From: kai <email@hidden>
References: 
 >Re: Time to figure out what is going on... (results) (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Help with foreign language issue
  • Next by Date: Re: Invoking an Objective-C method from an Applescript
  • Previous by thread: Re: Time to figure out what is going on... (results)
  • Next by thread: Re: Time to figure out what is going on... (fixed)
  • Index(es):
    • Date
    • Thread