• 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: Andrew Oliver <email@hidden>
  • Date: Thu, 22 Jan 2004 15:41:47 -0800

Simply:

read file "path:to:file.txt"

Andrew
:)

On 1/22/04 2:32 PM, "Kurt Godden" <email@hidden> 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.
>>
>> -Kurt
>>
>> I distrust a research person who is always obviously busy on a task.
>> -Robert A. Frosch, VP GM Research (retired)
> _______________________________________________
> 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.
_______________________________________________
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: Fwd: [OT] Vote for Apple's "1984" as best Super Bowl commercial
  • Next by Date: Re: How to Read from Text File?
  • Previous by thread: Re: How to Read from Text File?
  • Next by thread: Re: How to Read from Text File?
  • Index(es):
    • Date
    • Thread