looping problem
looping problem
- Subject: looping problem
- From: Elmer Banate <email@hidden>
- Date: Mon, 15 Oct 2001 00:54:10 -0700 (PDT)
Hi, everyone
I need help for may very simple script. I write a
script that will delete firts 3 characters of every
second line in a text box , those text box are link to
each other. (Or IWant to delete every first 3
characters in the second paragraph in the text box in
a whole document.) Please help.
Here is my script.
tell application "QuarkXPress 4.11"
activate
set QuarkFileName to name of front document
tell front document
set boxList to (object reference of every text box
whose name of color of line 2 is "Black")
repeat with i from 1 to count of items in boxList
set aBox to item i of boxList
tell aBox
delete (text from character 1 to character 3 of
line 2)
end tell
end repeat
end tell
end tell
my script run but it seems only three to five text
box, ihave to run again my script in the six text box
ant it run for again aleast 3 to five text box.
Is there something wrong with my object references? I
try to change my object refeneces to style "ITEM"
which is an style sheet, but I encounter an error in
it.
Thanks in advance
elmer
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com