• 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
Getting count of paragraphs in Scriptable Text Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting count of paragraphs in Scriptable Text Editor


  • Subject: Getting count of paragraphs in Scriptable Text Editor
  • From: email@hidden
  • Date: Thu, 14 Jun 2001 02:33:56 EDT

I'm trying to write a script which involves getting the number of items in a
list (each followed by a paragraph return) in Scriptable Text Editor.
I've tried this:
set theFile to (choose file with prompt "Locate file 'Try List'") as alias
open for access theFile
tell application "Scriptable Text Editor"
set theCount to the count of paragraphs of theFile
end tell
display dialog theCount

But I get an error that Applescript expected a reference at " count of
paragraphs of theFile".
Can anyone tell me what I'm doing wrong?
Thanks,
Andy D


  • Follow-Ups:
    • Re: Getting count of paragraphs in Scriptable Text Editor
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: is there a reason not to change "Applications (Mac OS 9)"
  • Next by Date: Re: Quick time and apple script
  • Previous by thread: Re: Finder to Clarisworks
  • Next by thread: Re: Getting count of paragraphs in Scriptable Text Editor
  • Index(es):
    • Date
    • Thread