带延迟的AppleScript try循环
我想用try重复,如果错误延迟,如果成功退出,重复,但它不会延迟 代码是带延迟的AppleScript try循环,applescript,try-catch,delay,repeat,Applescript,Try Catch,Delay,Repeat,我想用try重复,如果错误延迟,如果成功退出,重复,但它不会延迟 代码是 repeat with once in 10 try set .... eixt repeat on error delay(3) end try end repeat 我不知道如何修复它,请帮助我以下是对代码的一些改进,它可以正常工作: repeat with once from 1 to 10 try set x t
repeat with once in 10
try
set ....
eixt repeat
on error
delay(3)
end try
end repeat
我不知道如何修复它,请帮助我以下是对代码的一些改进,它可以正常工作:
repeat with once from 1 to 10
try
set x to onc -- erros because misspelled
exit repeat
on error
delay (3)
end try
end repeat
我只是想在出错时重置一些东西