• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: New to AppleScript,please help.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New to AppleScript,please help.


  • Subject: Re: New to AppleScript,please help.
  • From: Steve Hayman <email@hidden>
  • Date: Thu, 06 Jan 2011 15:11:52 -0500

On 2011-01-05, at 8:32 PM, Deborah Crain wrote:
> I just started using apple computers,please help me with this.
> I want to write a script that writes 34 random numbers between 21 and 29 to a text file.


"jot" is an great little command line utility that can produce lots of interesting data - random, sequential, evenly distributed, whatever.

Want 34 random numbers between 21 and 29 written to a text file?

	jot -r 34 21 29 >randomNumbers.txt


It's hard to beat that.  of course if you really need an Applescript solution,

	do shell script "jot -r 34 21 29 >randomNumbers.txt"

PS. Look at the EXAMPLES section at the end of "man jot" to get an idea of what it can do.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >New to AppleScript,please help. (From: Deborah Crain <email@hidden>)

  • Prev by Date: Slow vs faster
  • Next by Date: Re: variables vrs properties
  • Previous by thread: Re: New to AppleScript,please help.
  • Next by thread: Re: New to AppleScript,please help.
  • Index(es):
    • Date
    • Thread