• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QuarkXpress find and replace with a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Alternative to URL Access?
  • Next by Date: Re: Simple Question
  • Previous by thread: QuarkXpress find and replace with a variable
  • Next by thread: Re: QuarkXpress find and replace with a variable
  • Index(es):
    • Date
    • Thread