• 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
Count of Tab characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Count of Tab characters


  • Subject: Count of Tab characters
  • From: Bill Planey <email@hidden>
  • Date: Fri, 19 Jan 2001 15:35:13 -0600

(I am trying to do this in MS Word 98, for what that's worth)...

I cannot figure out the correct syntax to count the number of
tab characters in a document (or a line, or a paragraph). I have tried
the following, usint a document which I know has a total of 5 tabs in it:

set tabChar to ASCII number 9
set TabCount to count of tabChar
display dialog "There are " & TabCount & " tab characters in this
document."

but I get this message in the event log:

tell application "Microsoft Word"
ASCII number 9
--> 57
count 57
--> Microsoft Word got an error: 57 doesn't understand the count
message.


Can anyone help?

Thanks,

Bill Planey


  • Prev by Date: Re: Binary [was Re: ASCII]
  • Next by Date: don't bother reading this...
  • Previous by thread: Re: Binary [was Re: ASCII]
  • Next by thread: Re: Count of Tab characters
  • Index(es):
    • Date
    • Thread