samedi 25 août 2018

Setting a random interval for Apple Script

I have just began my journey in learning Apple Script and I was wondering instead of having Apple Script type out with a delay of 3 seconds . I would like it to type out in a random interval of 1-10 seconds. Thank you for your assistance in advance

tell application "System Events" set textToType to "text here" delay 3

repeat
    delay 1
    keystroke textToType

    keystroke return
end repeat

end tell




Aucun commentaire:

Enregistrer un commentaire