|Feb 19, 2013, 05:58 PM||#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.
|Feb 19, 2013, 08:54 PM||#3|
You just want it to run a loop as fast as possible for a specific duration?
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.
|Feb 19, 2013, 09:06 PM||#4|
Where you put where my code goes, I can put anything, even delays?
Thanks for helping!
|Feb 19, 2013, 10:13 PM||#5|
Btw, if you would guess my age between 10 and 30, how old would you think I am?
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Songs Repeat Even Though Repeat is Off||melissapete24||iOS 7||14||Jul 10, 2014 05:12 PM|
|iPhone: Repeat Notification||The Tos||Jailbreaks and iOS Hacks||0||Jan 28, 2014 07:44 AM|
|AppleScript: How do I save multiple Excel sheets to one pdf using Applescript||sbtaylor1||Mac Programming||0||Oct 28, 2013 11:38 PM|
|AppleScript: How do I save multiple Excel sheets to one pdf using Applescript||sbtaylor1||Mac Applications and Mac App Store||0||Oct 28, 2013 11:32 PM|
|key won't repeat||tony3d||Mac Pro||14||Aug 17, 2012 02:48 PM|
All times are GMT -5. The time now is 10:55 AM.