• 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: Yosemite and activate failures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yosemite and activate failures


  • Subject: Re: Yosemite and activate failures
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 11 Mar 2015 13:06:24 -0700
  • Sun-java-system-smtp-warning: Lines longer than SMTP allows found and truncated.

That explanation — and workaround — doesn’t sound right to me.  I’m going to check around a bit more.


—Chris Nebel
AppleScript Engineering

> On Mar 11, 2015, at 1:21 AM, Jörgen Stahle <email@hidden> wrote:
>
> I have received the answer below from Apple to my bug report on this issue. To me the suggested change of the script seems like a workaround.
>
> (The suggested change for my original example in the bug report is the line
> tell application "Finder" to get the front window)
>
> If this changed behavour in Applescript is not a bug, It would be interesting to have a rational explanation of the change...
>
> The answer from Apple :
>
> ”This issue behaves as intended based on the following:
>
> Each ‘tell’ sends an AppleEvent, asynchronously, and when Finder or our own app receive that event they do a SetFrontProcess() on themselves.  So, depending on which order they actually get received and handled, either Finder or the current app could get be in front.
>
> If you change the script so that it has to get something back from Finder, thus insuring that Finder has finished processing the activate event, with something like this
>
> set theList to {"a", "b", "c"}
>
> tell application "Finder" to activate
> tell application "Finder" to get the front window
>
> tell me
> activate
> choose from list theList
> end tell
>
> then I don’t see Finder ever be behind the front app.
>
> Please update your bug report to let us know if this is still an issue for you.”
>
>
>
>
>
>> 17 jan 2015 kl. 15:01 skrev Deivy Petrescu <email@hidden>:
>>
>>> tell application "Whatever"
>>> activate
>>> display dialog "Hello"
>>> end tell
>>>
>>> For the past 20-odd years, you could guarantee that that dialog would be presented by an active "Whatever". As of Yosemite, you can't. How can changed behavior like that be "as expected”?

 _______________________________________________
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: Resource for Cocoa Object Syntax in AS?
  • Next by Date: Re: Resource for Cocoa Object Syntax in AS?
  • Previous by thread: Re: Yosemite and activate failures
  • Next by thread: Resource for Cocoa Object Syntax in AS?
  • Index(es):
    • Date
    • Thread