Re: Replace text on spesific page
Re: Replace text on spesific page
- Subject: Re: Replace text on spesific page
- From: Joseph Weaks <email@hidden>
- Date: Mon, 15 Nov 2004 12:49:06 -0600
On Nov 15, 2004, at 11:34 AM, Steve Foster wrote:
set (every text of every story where it is "«Title" & i & "»") to "«Title" & (i + 1) & "»"
... Whilst this duplicates the pages it gives every placeholder value (EG. «TITLE6») the same value on ALL pages (ie the last value).
This is as I would expect. Instead, you'd have to move along a list, incrementing i each time in a repeat loop. I don't have QuarkXPress, and so can't help on the whole project, but to get an incremental i you need to do something like this:
set textBoxList to (every text of every story where it is "
«Title»")
-- Don't know the syntax, but the result needs to be a list of references to the text boxes
repeat with i from 1 to (count textBoxList)
set (item i of textBoxList) to (
"«Title" & i & "»")
end repeat
I probably don't have the particulars of your scenario right, but you get the picture.
Joe Weaks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden