Replace text on spesific page
Replace text on spesific page
- Subject: Replace text on spesific page
- From: Steve Foster <email@hidden>
- Date: Mon, 15 Nov 2004 17:34:39 +0000
Hi.
I am a VBscript developer who needs to learn applescript fast!! I am doing pretty well but this one has got me stumped. What I am trying to achieive is this:
I have a quark document which holds a text box containing the placeholder «TITLE». I need to duplicate this page and change the placeholder to «TITLE2» on page two than «TITLE3» on page 3 etc.
I have got very close with:
tell application "QuarkXPress"
activate
set recordCount to 6 -can be any amount
repeat with i from 1 to recordCount
tell document 1
set (every text of every story where it is "«Title" & i & "»") to "«Title" & (i + 1) & "»"
duplicate the page i
end tell
-- end tell
end repeat
end tell
+++++++++++++++++++++++++++++++++
Whilst this duplicates the pages it gives every placeholder value (EG. «TITLE6») the same value on ALL pages (ie the last value). If I then add a Tell Page statement it brings up the error:
Can't set text whose it = "«Title1»" to "«Title2»".
Any ideas or suggestions would be very greatly received.
thanks
Steve _______________________________________________
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