Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark text search/replace query



***Before acting on this email or opening any attachment you are advised to read the disclaimer at the end of this email***
************************************

Hi Jeff,

Thanks for your reply and for the code.

Since posting the query one or two other people helped me with the query, here's another example:-

tell application "QuarkXPress"
activate
tell current page of front document
set (contents of text of every text box where it = "xxx") to "yyy"
end tell
end tell


T
Thank you once again Jeff.

Regards,

Nick



On 1 Mar 2007, at 18:05, Jeff Jungblut wrote:

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
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:

This email sent to email@hidden

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________





**********************************************************************
Communisis plc - registered no: 2916113 is a limited company registered in England and Wales and whose registered office is at Wakefield Road, Leeds, LS10 1DU.

Please Note: This e mail and its attachments contain only the opinions of the sender and do not necessarily reflect the policy (s) of the Communisis group in general.

Confidentiality: This e-mail and the contents of any attachments are intended for the named recipient(s) only and may be confidential. If you have received this e-mail and its contents in error you must take no action based on them, nor must you copy or show them to anyone. Please reply to this e-mail and highlight the error.

Warning: Although this e-mail and any attachments have been scanned for viruses, Communisis cannot guarantee that they are virus free. The Communisis group therefore accepts no responsibility for any loss or damage caused by transmission of this e-mail.
**********************************************************************

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Quark text search/replace query (From: Jeff Jungblut <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.