Reputation: 71
I have the following applescript and for some reason it doesn't delay the amount of time specified. The way I understand it , it should delay 10 seconds between each display , but I get dialog after dialog without any delay
I've tried several different variants of this but it all ends up the same
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
Upvotes: 2
Views: 1840
Reputation: 11238
Try:
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
Upvotes: 1