Re: Search and replace script (Quark)
Re: Search and replace script (Quark)
- Subject: Re: Search and replace script (Quark)
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 03 Oct 2007 10:24:46 -0700
- Thread-topic: Search and replace script (Quark)
Hey Kevin,
At first glance here's what I notice about your script:
> script 1
> tell application "QuarkXPress"
> open file "wc_marine_b"
--here Quark is expecting a file reference or an alias.
--It can't identify your file by name. try Something like
open file "HD:Afolder:wc_marine_b" would work, or
open (choose file)
> script 2
> tell "wc_marine_b"
-- in this case Quark is looking for a more fully formed document reference.
Tell document 1
--or this might work
Tell document "wc_marine_b"
> try
> set every text of stories whose it = searchTextList to replaceTextList
--It may have been email formatting, but the on error needs to be on a new
line.
on error number -10006 -- search string not found -- handle the error, as
HTH,
ES
_______________________________________________
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