Need help with Styling text in Quark
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