Quark text search/replace query
Quark text search/replace query
- Subject: Quark text search/replace query
- From: Nick Hearn <email@hidden>
- Date: Thu, 1 Mar 2007 10:48:32 +0000
***Before acting on this email or opening any attachment you are advised to read the disclaimer at the end of this email***
************************************
Hi there,
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.
The trimmed down search looks like this:-
tell application "QuarkXPress" activate tell front document set (contents of text of every story where it = "test") to "replaced" end tell end tell
Please can someone point me in the right direction.
Thanks in advance,
Nick
**********************************************************************
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden