Re: Yosemite and activate failures
Re: Yosemite and activate failures
- Subject: Re: Yosemite and activate failures
- From: Deivy Petrescu <email@hidden>
- Date: Fri, 16 Jan 2015 17:21:19 -0500
- Sun-java-system-smtp-warning: Lines longer than SMTP allows found and truncated.
> On Jan 16, 2015, at 14:59 , Ray Robertson <email@hidden> wrote:
>
> Running Chris’s script under Yosemite also gives me the wrong results. It works fine, as he stated, under Mavericks.
>
> To be clear: I’m running these from a script saved as an application. For my use, that is crucial as I have many applets which end with “tell me to activate” and then immediately display a dialog. In Yosemite, the applet is not brought forward, and I get the bouncing dock icon.
>
> Those of you getting the name of an editor are obviously running from an editor. It is interesting to see that some scripts are failing from there as well. We all know using delay is a method of last resort, and in this case it appears to be even less reliable.
>
> For now, I will need to use System Events combined with Shane’s AS/ObjC to make activate work like it should—activate the application, and then wait until it is in front before proceeding with any other commands. For Yosemite users only, of course. I’ve posted the complete test below just FYI. You could put the “path to” and posix coercion in the subroutine, but you would need to add a condition to handle “path to me”.
>
> Jörgen asked…
>
>> What do you guess: Will Apple do something about it quite soon?
>
> I’m only guessing. But I would agree with Shane’s guess that this is likely a change to the underlying behavior system-wide. As such, we could be waiting a long time on a fix. Let’s hope not. I have filed a feedback report, and will leave a bug report as well for good measure.
>
> Ray Robertson
>
> ———
May be I am missing something, but why should the script wait for the app to activate to continue running.
I have never run this script in Mavericks (will do it soon) but either in Mavericks the activation was really fast or the script was running slowly.
From what I see apps take sometime to activate but the script is not set to wait for the app, principally because there is no other call inside the activate tell block.
In Excel there is the command set screen updating to false to make the app run faster.
The reason is we are not making the script wait for the application to end updating the script.
Am I wrong?
Deivy Petrescu
email@hidden
_______________________________________________
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