• 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
Quark-bold uppercase paragraphs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quark-bold uppercase paragraphs


  • Subject: Quark-bold uppercase paragraphs
  • From: Jeremy Sellors <email@hidden>
  • Date: Sun, 12 Aug 2001 09:06:22 -0700

Well this works in most cases, since I can't figure out how to test if a
paragraph is mostly uppercase.
How do I suspend screen updates as the script runs so that just the finished
text gets updated?
tell application "QuarkXPress 4.11"
activate
tell document 1
tell story 1 of automatic text box
set style of every paragraph to plain
set paraCou to count of paragraphs
try
repeat with i from 1 to paraCou
if ((count of characters of paragraph i) > 1) then
delete paragraph i
end if
end repeat
end try
try
repeat with i from 1 to paraCou
if ((count of characters of paragraph i) > 40) then
set style of paragraph i to "bold"
end if
end repeat
end try
end tell
end tell
end tell
Thanks in advance, __ Jeremy Sellors


  • Follow-Ups:
    • Re: Quark-bold uppercase paragraphs
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: round 6.0 rounding down -->5 ?
  • Next by Date: QT, present command
  • Previous by thread: Quark-bold uppercase paragraphs
  • Next by thread: Re: Quark-bold uppercase paragraphs
  • Index(es):
    • Date
    • Thread