• 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: delimiter if not using only one?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >delimiter if not using only one? (From: micro-people <email@hidden>)

  • Prev by Date: Boodlums is here ;)
  • Next by Date: Re: Boodlums is here ;)
  • Previous by thread: delimiter if not using only one?
  • Next by thread: Boodlums is here ;)
  • Index(es):
    • Date
    • Thread