Re: string count in log file
Re: string count in log file
- Subject: Re: string count in log file
- From: Michelle Steiner <email@hidden>
- Date: Mon, 17 Sep 2001 12:00:25 -0700
On 9/17/01 11:41 AM, Greg Sutherland <email@hidden> wrote:
>
I would like to get the strings that I'm counting from a list in the
>
script or a separate input file. I get an error when the string comes
>
from a list. "Can't get text returned of "the string" is the error
>
message.
I assume you mean "Can't get text returned of "thestrng"
>
set {od, AppleScript's text item delimiters} to {AppleScript's text item
>
delimiters, text returned of theStrng}
And I assume that you mean that you get it from this line:
>
set {od, AppleScript's text item delimiters} to {AppleScript's text item
>
delimiters, text returned of theStrng}
The reason is that you have defined thString as a string in this line
>
set theStrng to "database"
You can't get text returned of a string. It's the string portion of the
result of a dialog.
>
Also, I want the counts written to a file. I figured out how to
>
write to a file, but I can't get the value of theStrng into the output.
set myfile to open for access file "disk:folder:filename" with write
permission
set eof of myfile to 0
write mydata to myfile
close access myfile
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------