• 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: string count in log file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: can't get the folder of info for x
  • Next by Date: Timeout for display dialog?
  • Previous by thread: Re: string count in log file
  • Next by thread: Re: string count in log file
  • Index(es):
    • Date
    • Thread