• 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: Quark text search/replace query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark text search/replace query


  • Subject: Re: Quark text search/replace query
  • From: Jeff Jungblut <email@hidden>
  • Date: Thu, 01 Mar 2007 10:05:55 -0800
  • Thread-topic: Quark text search/replace query

on 3/1/07 2:48 AM, Nick Hearn at email@hidden wrote:

> Please can someone clarify this for me. I¹ve been doing some automation with
> Quark that involves the search/ replacing of text.
> On the whole eveything has worked fine until I started another project the
> other day.
>
> This project involves several text replacements on the same page of what will
> be a multi-page document. Everything started ok however now I¹ve hit a slight
> snag in that I¹m now getting the following error:-
>
> QuarkXpress got an error: Can¹t set contents of every line of document whose
> it = ³xxx² to ³yyy²
>
> I¹ve had a read through my Shirley Hopkins book to try and ascertain whether
> or not I need to search a Œline¹, Œparagraph¹ or Œstory¹ but having tried a
> few variations this hasn¹t helped.

Here's one example of how I've done it if it helps:

    tell application "QuarkXPress"
        tell story 1 of current box
            copy (ASCII character 13) to (every text where it is (ASCII
character 7)) -- line break to paragraph break
            copy (ASCII character 32) to (every text where it is (ASCII
character 16)) -- shift-space to normal space
            copy (ASCII character 32) to (every text where it is (ASCII
character 202)) -- option-space to normal space
        end tell
    end tell


--
Jeff Jungblut
email@hidden
Senior Graphic Designer & Web Developer
Uptown Publications


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Quark text search/replace query
      • From: Nick Hearn <email@hidden>
References: 
 >Quark text search/replace query (From: Nick Hearn <email@hidden>)

  • Prev by Date: Re: Filemaker waiting for AS
  • Next by Date: scripting Apple Address book
  • Previous by thread: Quark text search/replace query
  • Next by thread: Re: Quark text search/replace query
  • Index(es):
    • Date
    • Thread