QuarkXpress find and replace with a variable
QuarkXpress find and replace with a variable
- Subject: QuarkXpress find and replace with a variable
- From: Aaron Miller <email@hidden>
- Date: Wed, 24 Jan 2001 13:22:45 -0700
Does anyone out there know why this droplet isn't working? I am trying to
get QuarkXpress to replace a word in a flow of text with a corresponding
word. Here is the script, simplified:
on open x
tell application "QuarkXPress(tm)"
activate
open x
tell document 1
tell text box 1
tell story 1
repeat with i from 1 to count of usenglish
set (every text where it is item i
of list1) to item i of list2
end repeat
end tell
end tell
end tell
end tell
end open
All items in list1 and list2 are strings. Also, it seems to work fine if I
type in text strings in the place of the variables from each list (i.e.
typing "Bob" instead of "item i of list1").
Any help would be much appreciated.
Aaron
>
Aaron Miller - Macintosh Specialist
>
Morinda, Inc.
>
email@hidden
>
(801) 234-2609