• 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
Replace text on spesific page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Replace text on spesific page
      • From: Hans Haesler <email@hidden>
    • Re: Replace text on spesific page
      • From: Joseph Weaks <email@hidden>
  • Prev by Date: itunes and duplicating track from library
  • Next by Date: Re: X10, home automation and AppleScript
  • Previous by thread: DragThing as AS launcher, oddity
  • Next by thread: Re: Replace text on spesific page
  • Index(es):
    • Date
    • Thread