• 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: is delay broken in JSA
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is delay broken in JSA


  • Subject: Re: is delay broken in JSA
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 15 Dec 2014 17:20:51 -0500

Paul, I am too green in JSA to know what is a bug.
I will wait.
:-{

Workaround is to (thankfully) use AppleScript

app=Application.currentApplication()
app.includeStandardAdditions=true
app.beep(2)
app.strictParameterType = false
app.runScript('delay 2', {in:'AppleScript'})
app.beep(3)


> On Dec 15, 2014, at 17:05 , Paul Scott <email@hidden> wrote:
>
> That may be a bug, which should be reported. As a workaround, you can use:
>
> app.doShellScript("sleep 2");
>
> Paul
>
>> On Dec 15, 2014, at 12:50 PM, Deivy Petrescu <email@hidden> wrote:
>>
>> This works
>> app.beep(3)
>>
>> This does not
>> app.delay(2)
>> —>Error on line 4: Error: Message not understood.
>>
>> Now this
>> app.delay(“2”)
>> —>Error on line 4: Error: Expected number but found string. ???
>>
>> When I send a number is not happy as well
>
> _______________________________________________
> 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


References: 
 >is delay broken in JSA (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: is delay broken in JSA
  • Next by Date: Re: is delay broken in JSA
  • Previous by thread: Re: is delay broken in JSA
  • Next by thread: Re: is delay broken in JSA
  • Index(es):
    • Date
    • Thread