Make AppleScript delay a random number between x and y?How do I generate a random even number with Applescript?Shell or Applescript to delay shutdown?AppleScript “delay” command not working since switch to YosemiteMake Applescript press LShiftWhat is the minimum “delay” in AppleScript?How might I save a variable between Applescript runs?Applescript remove Missing value and unwanted dataHow to make applescript type items into url barCan AppleScript select text after my cursor between designated characters?AppleScript : separating number from text in variable

Where did the “Vikings wear helmets with horn” stereotype come from and why?

What is the best linguistic term for describing the kw > p / gw > b change, and its usual companion s > h

Draw a checker pattern with a black X in the center

How do I subvert the tropes of a train heist?

What is the 中 in ダウンロード中?

How could Catholicism have incorporated witchcraft into its dogma?

Compact Mechanical Energy Source

Windows 10 Programs start without visual Interface

What was this black-and-white film set in the Arctic or Antarctic where the monster/alien gets fried in the end?

How current works

What does "Marchentalender" on the front of a postcard mean?

Why doesn't the Earth's acceleration towards the Moon accumulate to push the Earth off its orbit?

Is my router's IP address really public?

Infinitely many hats

Comment dit-on « I’ll tell you what » ?

What does the term “mohel” mean in Hilchot Melicha (salting)?

How to prevent bad sectors?

Is floating in space similar to falling under gravity?

Could IPv6 make NAT / port numbers redundant?

Is CD audio quality good enough for the final delivery of music?

Apparent Ring of Craters on the Moon

Can't use numexpr in horizontal mode

I think I may have violated academic integrity last year - what should I do?

What is a subpixel in Super Mario Bros, and how does it relate to wall clipping?



Make AppleScript delay a random number between x and y?


How do I generate a random even number with Applescript?Shell or Applescript to delay shutdown?AppleScript “delay” command not working since switch to YosemiteMake Applescript press LShiftWhat is the minimum “delay” in AppleScript?How might I save a variable between Applescript runs?Applescript remove Missing value and unwanted dataHow to make applescript type items into url barCan AppleScript select text after my cursor between designated characters?AppleScript : separating number from text in variable






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















set DelayTime1 to 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58
set DelayTime2 to some item of DelayTime1
delay DelayTime2


Is there any way I can clean this up so that if I want the range to be larger I don't have to type a bunch more numbers? i.e. set DelayTime1 to 18 thru 58










share|improve this question







New contributor



Adihsam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    2















    set DelayTime1 to 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58
    set DelayTime2 to some item of DelayTime1
    delay DelayTime2


    Is there any way I can clean this up so that if I want the range to be larger I don't have to type a bunch more numbers? i.e. set DelayTime1 to 18 thru 58










    share|improve this question







    New contributor



    Adihsam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      2












      2








      2








      set DelayTime1 to 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58
      set DelayTime2 to some item of DelayTime1
      delay DelayTime2


      Is there any way I can clean this up so that if I want the range to be larger I don't have to type a bunch more numbers? i.e. set DelayTime1 to 18 thru 58










      share|improve this question







      New contributor



      Adihsam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      set DelayTime1 to 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58
      set DelayTime2 to some item of DelayTime1
      delay DelayTime2


      Is there any way I can clean this up so that if I want the range to be larger I don't have to type a bunch more numbers? i.e. set DelayTime1 to 18 thru 58







      applescript






      share|improve this question







      New contributor



      Adihsam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      Adihsam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      Adihsam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 8 hours ago









      AdihsamAdihsam

      153




      153




      New contributor



      Adihsam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Adihsam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          2














          You can use random number, e.g.:



          set timeDelay to random number from 18 to 58
          delay timeDelay


          Or any integer values you wish.




          For more information about random number click the link. Also have a look at: AppleScript Language Guide






          share|improve this answer
































            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            You can use random number, e.g.:



            set timeDelay to random number from 18 to 58
            delay timeDelay


            Or any integer values you wish.




            For more information about random number click the link. Also have a look at: AppleScript Language Guide






            share|improve this answer





























              2














              You can use random number, e.g.:



              set timeDelay to random number from 18 to 58
              delay timeDelay


              Or any integer values you wish.




              For more information about random number click the link. Also have a look at: AppleScript Language Guide






              share|improve this answer



























                2












                2








                2







                You can use random number, e.g.:



                set timeDelay to random number from 18 to 58
                delay timeDelay


                Or any integer values you wish.




                For more information about random number click the link. Also have a look at: AppleScript Language Guide






                share|improve this answer















                You can use random number, e.g.:



                set timeDelay to random number from 18 to 58
                delay timeDelay


                Or any integer values you wish.




                For more information about random number click the link. Also have a look at: AppleScript Language Guide







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 8 hours ago

























                answered 8 hours ago









                user3439894user3439894

                29.6k64669




                29.6k64669













                    Popular posts from this blog

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480