• 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: Chris Garaffa <email@hidden>
  • Date: Thu, 22 Jan 2004 18:46:47 -0500

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

On the Apple website I found a nice script to let me save a string to a text file. How can I do the inverse and read from a text file without opening up an application like Text Edit?
I just want to bind a string variable with the the contents of the whole file OR a given line from that text file.

I haven't found the code to do that yet.

Take a look at the Standard Additions dictionary. The "read" command is what you're looking for.
_______________________________________________
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: How to Read from Text File?
  • Next by Date: Checking for App running and restart if not
  • Previous by thread: Re: How to Read from Text File?
  • Next by thread: Fwd: [OT] Vote for Apple's "1984" as best Super Bowl commercial
  • Index(es):
    • Date
    • Thread