Re: delimiter if not using only one?
Re: delimiter if not using only one?
- Subject: Re: delimiter if not using only one?
- From: John Delacour <email@hidden>
- Date: Wed, 3 Sep 2003 13:11:29 +0100
- Mac-eudora-version: 6.1a1
At 8:24 pm +0900 3/9/03, micro-people wrote:
if i used
set fragment to read poem from y until {".", ",", "is", return} as text
the editor warns me that
it cannot convert
{".", ",", "is", return}
to a string
if i want to use several words @ "until"
{".", ",", "is", return}
is not the right way to bundle them?
You can only read until a _character_, not a list, not a word.
However you can split the contents with 'using delimiters', which
must, unfortunately, also be single characters.
set f to "/tmp/f" as POSIX file
set s to "one, two
three . four"
open for access f with write permission
set eof f to 0
write s to f
close access f
read f using delimiter {" ", ",", ".", ASCII character 10, return}
JD
_______________________________________________
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.