• 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: Replace word BUT with same pointsize/linespace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replace word BUT with same pointsize/linespace


  • Subject: Re: Replace word BUT with same pointsize/linespace
  • From: Stan Cleveland <email@hidden>
  • Date: Mon, 17 Jul 2006 12:54:42 -0700
  • Thread-topic: Replace word BUT with same pointsize/linespace

On 7/17/06 3:58 AM, Jan Bultereys wrote:

> Hi, does anyone know how to select a word/words in Quark and replace it with
> an other word/words BUT with the same pointsize/leading?
>
> Any help is much appreciated

The following code should do what you need. You can address the text box
either by index, as shown, or by name, if you've assigned it one.

tell application "QuarkXPress"
   tell page 1 of document 1
      try
         set every text of story 1 of text box 1 ¬
            whose it = findText to replaceText
      on error number -10006 -- search string not found
         -- handle the error, as desired
      end try
   end tell
end tell

Stan Cleveland
Color Technology Inc.
Portland, Oregon

"Everything should be made as simple as possible, but no simpler." -- Albert
Einstein


 _______________________________________________
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: 
 >Replace word BUT with same pointsize/linespace (From: Jan Bultereys <email@hidden>)

  • Prev by Date: Re: File Busy
  • Next by Date: Mail rules firing an applescript
  • Previous by thread: Replace word BUT with same pointsize/linespace
  • Next by thread: Mail rules firing an applescript
  • Index(es):
    • Date
    • Thread