|
|
#1 |
|
AppleScript Repeat For x Seconds
I need AppleScript to repeat for a certain number of seconds. I was thinking "repeat for x seconds" but that doesn't work. Notice: This is not delay, I want the repeat to stop after x seconds.
|
|
|
|
0
|
|
|
#2 |
|
Oh, and also, a command that repeats the script until "esc" is pressed
|
|
|
|
0
|
|
|
#3 |
|
You just want it to run a loop as fast as possible for a specific duration?
Code:
set start_value to do shell script "ruby -e 'print Time.now.to_f'" repeat while true -- Your code goes here set end_value to do shell script "ruby -e 'print Time.now.to_f'" if end_value - start_value ≥ 1 then exit repeat end if end repeat Can't help you with your other problem. |
|
|
|
1
|
|
|
#4 | |
|
Quote:
Where you put where my code goes, I can put anything, even delays? Thanks for helping! jcs801 |
||
|
|
0
|
|
|
#5 | |
|
Quote:
Btw, if you would guess my age between 10 and 30, how old would you think I am? |
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 11:36 PM.







Linear Mode
