Re: New to AppleScript,please help.
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