• 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
Rép: Mail GUI script error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rép: Mail GUI script error


  • Subject: Rép: Mail GUI script error
  • From: "koenig.yvan" <email@hidden>
  • Date: Wed, 20 Feb 2013 16:54:32 +0100

Le 20/02/2013 à 16:25, Luther Fuller <email@hidden> a écrit :

Brian Christmas suggested using 'activate' for System Events.
I wondered if perhaps an 'activate' elsewhere might be a solution.
Since the error was originating from Mail, I added an 'activate' before setting-up Mail.
Like this ...

activate me -- added. No -1719 error
tell application "Mail"
activate

This seems to solve my problem. It worked the first time I tested it.

Now, the problem is that I don't understand why this should work.
It seems like more Mt Lion flakiness.
… and haven't we recently seen a similar solution? Hmmmmmm.

Hello Luther

activate application "trucmuche"
tell application "System Events" to tell application process "trucmuche"

is the structure given by Matt Neuburg in "AppleScript The Definitive Guide".

This is why I use it in every scripts using GUI scripting.

I know that some shortcuts don't require that but I choose to play safety.

Yvan KOENIG (VALLAURIS, France) mercredi 20 février 2013 16:53:04




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Mail GUI script error
  • Next by Date: Re: Mail GUI script error
  • Previous by thread: Re: Mail GUI script error
  • Next by thread: Simple apple script to open a message in Mail?
  • Index(es):
    • Date
    • Thread