Used-defined repeats in AppleScript

Hey all,

I am trying to write a script that inlcudes repeats but the repeats have to be user-defined (meaning the amount of repeats needed would vary every time the script is executed).

Hence, I’d need to make a window pop up asking for the amount of repeats and upon feeding the number and pressing Enter, the script to execute these script repeats.

I am fairly new in the world of AppleScript (I cannot believe I haven’t been using all these years!). I am currently reading and receiving some training about it but I cannot find anything related when it comes to the subject of loops and repeats.

Any ideas anyone?

There is a wide variety of tutorials in the unScripted section of this very site. Here is some advice on repeats.