Applescript随机延迟

| 我需要整天随机播放声音。 如何创建随机延迟功能,然后通过系统音频播放文件?     
已邀请:
尝试这个
on run {}
    my doit()
end run

on doit()
    display dialog \"hello world\"
end doit

on idle {}
    set ran to random number from 0 to 10
    doit()
    return ran
end idle
确保将其保存为保持打开状态的应用程序     
delay x接受一个整数作为参数。 从a到b的随机数在a和b值之间生成一个随机整数     

要回复问题请先登录注册