• 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: How to Read from Text File?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Read from Text File?


  • Subject: Re: How to Read from Text File?
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 22 Jan 2004 16:38:28 -0700

On Jan 22, 2004, at 3:32 PM, Kurt Godden wrote:

I just want to bind a string variable with the the contents of the whole file

set foo to choose file of type {"TEXT"}
set bar to read foo

OR a given line from that text file.

set foo to choose file of type {"TEXT"}
set bar to read foo using delimiter return
set foobar to item 6 of bar -- or whatever line you wish to bind.

--
Don't dream it. Be it. --RHPS
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >How to Read from Text File? (From: Kurt Godden <email@hidden>)

  • Prev by Date: Re: Inheritance
  • Next by Date: Fwd: [OT] Vote for Apple's "1984" as best Super Bowl commercial
  • Previous by thread: How to Read from Text File?
  • Next by thread: Re: How to Read from Text File?
  • Index(es):
    • Date
    • Thread