2012-11-29 192 views
1

我有以下applescript和由于某种原因,它不会延迟指定的时间量。我的理解是,它应该延时10秒内每次显示之间,但我得到对话框后,对话没有任何延迟在循环中延迟iplescript不延迟

我已经试过这几个不同的变种,但是这一切结束了同

set models to {"tom", "dick", "harry", "mark", "ringo", "john"} 
set users to {"359597388", "338954297", "339380024", "1254012084", "265934082", "105804369"} 
repeat 
    repeat with model in models 
     repeat with user in users 
      delay (6000) 
      display dialog "Sending user:" & user & "With model:" & model & "." 

     end repeat 

    end repeat 
end repeat 
+0

的'delay'命令采用的整数(**以秒**)作为其参数。你告诉程序需要等待6000秒,但这不能正常工作,因为程序超时了。 – fireshadow52

回答

0

尝试:

set models to {"tom", "dick", "harry", "mark", "ringo", "john"} 
set users to {"359597388", "338954297", "339380024", "1254012084", "265934082", "105804369"} 
repeat 
    repeat with model in models 
     repeat with user in users 
      delay 10 
      display dialog "Sending user:" & user & " With model: " & model & "." 
     end repeat 

    end repeat 
end repeat