Re: QuarkXpress find and replace with a variable
Re: QuarkXpress find and replace with a variable
- Subject: Re: QuarkXpress find and replace with a variable
- From: Hans Haesler <email@hidden>
- Date: Wed, 24 Jan 2001 22:46:39 +0100
On Wed, 24 Jan 2001, Aaron Miller wrote:
>
Does anyone out there know why this droplet isn't working?
Aaron,
what is in your variable 'usenglish'? Why don't you count the
number of items in one of the lists? Where are these lists defined?
If this doesn't happen inside of the open handler (see below) then
you must put them in another handler and put a call inside of the
open handler to get the items.
---
on open x
set list1 to {"one", "two", "three"}
set list2 to {"four", "five", "six"}
tell application "QuarkXPress 4.11"
activate
open x
tell document 1
tell text box 1
tell story 1
repeat with i from 1 to count of list1
try
set (every text where it is item i of list1) to item i of list2
on error
end try
end repeat
end tell
end tell
end tell
end tell
end open
---
This works for me.
Hans
---
Hans Haesler | email@hidden