Re: is delay broken in JSA
Re: is delay broken in JSA
- Subject: Re: is delay broken in JSA
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 16 Dec 2014 09:52:35 -0500
> On Dec 15, 2014, at 22:46 , Shane Stanley <email@hidden> wrote:
>
> On 16 Dec 2014, at 11:02 am, Deivy Petrescu <email@hidden> wrote:
>>
>> But apparently only on applets
>
> No -- anywhere a script runs on the main thread, by the look of it. Hold the control key and choose Script -> Run in Foreground in Script Editor, and you'll see the same problem. And in scripts run from app menus and panels.
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>
>
And interestingly enough, this can not be used as a workaround since apparently AS can not run the first script in JS.
<script>
set c to current date
run script "delay 3" in "Javascript"
set k to run script "new Date" in "Javascript"
{k, c}
</script>
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