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

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

References: 
 >Replace text on spesific page (From: Steve Foster <email@hidden>)

  • Prev by Date: Re: X10, home automation and AppleScript
  • Next by Date: AS for MySQL
  • Previous by thread: Replace text on spesific page
  • Next by thread: Re: Replace text on spesific page
  • Index(es):
    • Date
    • Thread