QuarkXpress find and replace with variables (new question)
QuarkXpress find and replace with variables (new question)
- Subject: QuarkXpress find and replace with variables (new question)
- From: Aaron Miller <email@hidden>
- Date: Thu, 25 Jan 2001 09:43:22 -0700
Shirley, Hans, and Ed
Thanks for the help offered. I wasn't aware of the need for a try
statement for this to keep it from generating the error I was getting. Now
my problem is that it is not replacing according to case sensitivity. There
are two versions of each word in list1 and list2, one capitalized, the other
not (i.e. uno, Uno). In every case, to use Shirley's example, "One" is being
replaced with "uno". Here is the updated script:
property list1 : {"one ", "One "}
property list2 : {"uno", "Uno"}
on open y
tell application "QuarkXPress(tm)"
open y
tell document 1
tell story 1 of text box 1
repeat with i from 1 to count of usenglish
set list1item to item i of list1
set list2item to item i of list2
set (every text where it is list1item) to
list2item
end repeat
end tell
end tell
end tell
end open
Is there any way to make sure this replaces "One" with "Uno" instead of
"uno"? I am very grateful for your help.
Aaron
Aaron Miller - Macintosh Specialist
Morinda, Inc.
email@hidden
(801) 234-2609