Re: Sequential renumbering in InDesign CS3
Re: Sequential renumbering in InDesign CS3
- Subject: Re: Sequential renumbering in InDesign CS3
- From: Shane Stanley <email@hidden>
- Date: Fri, 05 Dec 2008 08:48:32 +1100
- Thread-topic: Sequential renumbering in InDesign CS3
On 4/12/08 11:59 PM, "Andrew Brown" <email@hidden> wrote:
> I'm looking for a solution to renumber strings in InDesign stories.
> Each string has the same character style (and no other strings have
> it) and typically consists of 1, 2 or 3 digit numbers, sometimes with
> a letter. I want to find the first string, replace it by 1, find the
> next, replace it by the last figure plus 1, and so on through to the
> end of the story.
You first need to write a GREP search to find the digits and letters. When
you run that from a script as a find, it will return references to all of
them, which you can loop through (from last to first) setting their contents
to the appropriate number.
--
Shane Stanley <email@hidden>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden