• 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: Alex Zavatone <email@hidden>
  • Date: Wed, 05 Jan 2011 19:47:39 -0600

Dammit man, you beat me.

On Jan 5, 2011, at 7:39 PM, André Renault wrote:

Tried and true:

set randomList to {}
repeat 34 times
copy (random number from 21 to 29) to the end of randomList
end repeat

set {AppleScript's text item delimiters, tid} to {"\n", AppleScript's text item delimiters}
set pathToFile to "/Path/To/Text/File.txt"
set openedFile to open for access pathToFile with write permission
write (randomList as string) to openedFile
close access openedFile


 _______________________________________________
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>)
 >Re: New to AppleScript,please help. (From: AndrĂ© Renault <email@hidden>)

  • Prev by Date: Re: New to AppleScript,please help.
  • Next by Date: Re: Copy Picture to Clipboard
  • Previous by thread: Re: New to AppleScript,please help.
  • Next by thread: Re: New to AppleScript,please help.
  • Index(es):
    • Date
    • Thread