• 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
Need help with Styling text in Quark
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help with Styling text in Quark


  • Subject: Need help with Styling text in Quark
  • From: Jeff Horton <email@hidden>
  • Date: Wed, 24 Oct 2001 10:17:17 -0400

The following script works but is ugly:
--------
set last word of paragraph nextP of objTB to (listPrice & tab & yourPrice &
" " & listUnit)
set tmpCnt to count of words of paragraph nextP of objTB
set tmpData to paragraph nextP of objTB as text
set tmpDataCnt to count of characters of tmpData
set tmpAdd to (count of characters of yourPrice) + (count of
characters of yourUnit) + (count of characters of listPrice)
set tmpFrom to (tmpDataCnt - tmpAdd - 1)
set tmpTo to tmpFrom + (count of characters of listPrice)
set style of characters tmpFrom thru tmpTo of (paragraph nextP
of objTB) to strikethrough
--------

Now, what I need to know is is there an easier way if I know which word I
want to set the style to strikethrough, can I just set that word instead of
figuring out where it is in the paragraph by character counting?
Can I not just:

Set style of word "4.00" of paragraph nextP of objTB to strikethrough

Thanks in advance!

Jeff Horton


  • Follow-Ups:
    • Re: Need help with Styling text in Quark
      • From: Shane Stanley <email@hidden>
    • Re: Need help with Styling text in Quark
      • From: Frank Miedreich <email@hidden>
  • Prev by Date: AS: to Keychain or NOT (opinions please)
  • Next by Date: Re: Backup Script Improvements Please
  • Previous by thread: Re: AS: to Keychain or NOT (opinions please)
  • Next by thread: Re: Need help with Styling text in Quark
  • Index(es):
    • Date
    • Thread