Jump to content


Photo

Applescript delay versus do shell script sleep


  • Please log in to reply
No replies to this topic

#1 Daniel Semler

Daniel Semler

    Platinum

  • Active Members
  • PipPipPipPipPip
  • 1,835 posts
  • Gender:Male
  • Accordance Version:11.x

Posted 03 January 2014 - 12:45 AM

Hi ya,

 

  I have been battling an Applescript issue with the delay command in some of my GUI scripting of Accordance. Ask for 1 second get 11, that sort of thing. But erratic so that one never knows quite how long a script will take. I then hit on the idea of doing : do shell script "sleep " & duration. This works much predictably. I then search for this sort of solution and found this is not unknown in AS circles. Anyhow, figured I'd mention it in case anyone else needs it or has other comments on the issue.

 

Thx

D


Accordance Configurations :
 
Mac : 2009 27" iMac                 Windows : HP 4540s laptop
      Intel Core Duo                          Intel i5 Ivy Bridge
      12GB RAM                                8GB RAM
      Accordance 11.0.1                       Accordance 11.0.1
      OSX 10.9 (Mavericks)                    Win 7 Professional x64 SP1





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users