Re: delay doesn't work when applet is not frontmost
Re: delay doesn't work when applet is not frontmost
- Subject: Re: delay doesn't work when applet is not frontmost
- From: Alex Zavatone <email@hidden>
- Date: Thu, 05 Mar 2015 10:27:13 -0500
I think that we used shell sleep instead of delay, because in compiled AppleScripts, delay would use 100% of one core, but that might have been fixed in the 5+ years that I tested that.
Is it still common practice to use shell sleep instead of delay?
Sent from my iPad. Please pardon typos.
On Mar 4, 2015, at 7:06 PM, "Stockly, Ed" <email@hidden> wrote:
> Has anyone else noticed this in Yosemite (or elsewhere)
>
> If I save this script as an applet, the delay 20 command seems to be
> ignored as soon as the script is no longer frontmost.
>
> If you remove the finder activate command, the delay works, but if you
> bring another app to the front, it stops delaying and goes on with the
> script.
>
> Can anyone repeat see this? Is it new?
>
> ES
>
> repeat with x from 1 to 20
> tell me to activate
> display dialog x giving up after 3
> tell application "Finder" to activate
> delay 20
> end repeat
>
>
>
>
>
>
>
> _______________________________________________
> 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
_______________________________________________
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