Re: read using delimiter command
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]