• 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 use delimiters in Standard Additions file read/write commands?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use delimiters in Standard Additions file read/write commands?


  • Subject: Re: How to use delimiters in Standard Additions file read/write commands?
  • From: Charles Arthur <email@hidden>
  • Date: Sun, 18 Mar 2001 21:16:52 +0000

Hi..

What confuses me about this is that there is essentially no difference
between my script and D+C's; except "set thelist to read filRef" where I
had "set thelist to read thefile".

So why do I get "parameter error"?


At 9:37 am -0800 18/3/01, Devon and Cornwall wrote:
>At 10:40 AM +0000 3/18/01, Charles Arthur wrote:
>
>>I'm interested in the file commands of the Standard Additions for reading
>>(and doing fast TID-based search+replace).
>
>>However my script
>> ----
>>set thefile to choose file
>>open for access thefile
>>set theend to get eof of thefile
>>--display dialog (theend & " bytes") as string -- used in earlier debugging
>>set thelist to read thefile using delimiter {" "}
>>close access thefile
>>----
>>fails at the "set thelist to..." point with "parameter error".
>
>If you just want the words of a file in a list you can use either of these:
>
>set thefile to choose file
>set filRef to open for access thefile
>set thelist to read filRef using delimiter {" "}
>close access filRef
>thelist


Charles


http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...


References: 
 >How to use delimiters in Standard Additions file read/write commands? (From: Charles Arthur <email@hidden>)
 >Re: How to use delimiters in Standard Additions file read/write commands? (From: Devon and Cornwall <email@hidden>)

  • Prev by Date: PICTs and Dialog Director
  • Next by Date: Re: PICTs and Dialog Director
  • Previous by thread: Re: How to use delimiters in Standard Additions file read/write commands?
  • Next by thread: Re: How to use delimiters in Standard Additions file read/write commands?
  • Index(es):
    • Date
    • Thread