• 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: read using delimiter command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read using delimiter command


  • Subject: Re: read using delimiter command
  • From: "Marc K. Myers" <email@hidden>
  • Date: Sun, 23 Dec 2001 22:13:44 -0500
  • Organization: [very little]

> Date: Sat, 22 Dec 2001 23:52:45 -0800
> To: email@hidden
> From: Peter Long <email@hidden>
> Subject: read using delimeter command
>
> If I use a carriage return, this works. But if I use some odd-ball
> character like the infinity symbol, it doesn't. Am I missing
> something?
>
> >set myTextinput to choose file with prompt "Select the file " & "."
> >set splitAt to ""
> >tell application "Finder"
> > set myFiles to read myTextinput using delimiter splitAt as text
> > set myNumberOfFrames to (count myFiles)
> > display dialog myNumberOfFrames
> >end tell

Try it this way:

set myFiles to (read myTextinput as text using delimiter splitAt)

The "using delimiter" clause is an optional part of the "as classname" parameter.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[12/23/01 10:12:31 PM]


  • Prev by Date: Re: how to set folder action
  • Next by Date: Re: how to hide the frontmost app?
  • Previous by thread: disconnect
  • Next by thread: Definitely a bug
  • Index(es):
    • Date
    • Thread