• 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
Setting contents of a large file to a variable.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting contents of a large file to a variable.


  • Subject: Setting contents of a large file to a variable.
  • From: Kumar Shailove <email@hidden>
  • Date: Thu, 25 Nov 2004 13:11:32 +0530

Hi list,
I need to manipulate text contained in a very large text file ~ 30-40 MB for
this I have set the contents of the file to a variable and then manipulate
that variable and once the variable has been manipulated, I again save the
file.
I have written following script for that:

Set x to open for access "myfile.txt"
Set myText to read x as text
Close access x

But it gives me the error: Out of Memory.

Any alternative methods to do it?

Thanks in advance.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Setting contents of a large file to a variable.
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: CRON
  • Next by Date: Re: Unicode-to-string bug?
  • Previous by thread: Extracting attachments from Mail in Tiger
  • Next by thread: Re: Setting contents of a large file to a variable.
  • Index(es):
    • Date
    • Thread