Re: How to use delimiters in Standard Additions file read/write
Re: How to use delimiters in Standard Additions file read/write
- Subject: Re: How to use delimiters in Standard Additions file read/write
- From: Nigel Garvey <email@hidden>
- Date: Tue, 20 Mar 2001 01:20:14 +0000
Paul Berkowitz wrote on Mon, 19 Mar 2001 09:04:10 -0800:
>
> set thefile to choose file
>
> set filRef to open for access thefile
>
> set thelist to read filRef using delimiter {" "}
>
> close access filRef
>
> thelist
>
>
>
> I'm on OS 9.1, AppleScript 1.6.
>
>
>
>
using delimiter {" "}
>
>
should be either
>
>
using delimiter " "
>
>
or
>
>
using delimiters {" "}
>
>
Maybe that's got something to do with it?
Aha! Well spotted. But using {" "} or " " doesn't make any difference on
my 8.6 machine. You still have to use 'as list' in the 'read'
instruction. And 'delimiters' compiles as 'delimiter' with both forms
(and with more than one delimiter). Strange....
NG