• 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: Count of paragraphs in a TextEdit document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Count of paragraphs in a TextEdit document


  • Subject: Re: Count of paragraphs in a TextEdit document
  • From: Jean-Baptiste LE STANG <email@hidden>
  • Date: Mon, 1 Nov 2004 10:33:57 +0100

You must force the object resolution using a 'get' : count ( get paragraphs of document 1)
++ JB

Le 1 nov. 04, à 09:17, wayne melrose a écrit :

count every paragraph of document 1
or
count paragraphs of document 1

try that.. failing that.. you could always set the body of text to a variable, then just count paragraphs of the variable..

outside of a textedit tell ..



On Nov 1, 2004, at 9:01 AM, Kumar Shailove wrote:

<x-tad-bigger>I am writing following script to count number of paragraphs in a “TextEdit” document, but it doesn’t work.</x-tad-bigger>

<x-tad-bigger>  </x-tad-bigger>

<x-tad-bigger>tell application “TextEdit”</x-tad-bigger>

<x-tad-bigger>count each paragraph of document 1</x-tad-bigger>

<x-tad-bigger>end tell</x-tad-bigger>

 

please correct me if I am writing it wrong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Count of paragraphs in a TextEdit document (From: Kumar Shailove <email@hidden>)
 >Re: Count of paragraphs in a TextEdit document (From: wayne melrose <email@hidden>)

  • Prev by Date: Re: Count of paragraphs in a TextEdit document
  • Next by Date: Adding files to AppleScript Studio Application
  • Previous by thread: Re: Count of paragraphs in a TextEdit document
  • Next by thread: Re: Count of paragraphs in a TextEdit document
  • Index(es):
    • Date
    • Thread