• 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
Find duplicate numbers and replace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Find duplicate numbers and replace


  • Subject: Find duplicate numbers and replace
  • From: "Script2" <email@hidden>
  • Date: Wed, 14 May 2008 12:27:25 -0400
  • Importance: Normal

I want to write a script that will find the second, third……occurrence of number (the number is always before [F]) and add “a” to second occurrence, “b” to third occurrence so on. Appreciate any suggestions or script examples. OS 10.3

 

Thanks Ruby

 

 

Example of text file:

 

ORIGINAL

 

6000[F]This computer is fast.

 

1[F]This computer is fast.

 

6000[F]This computer is fast.

 

3[F]This computer is fast.

 

6000[F]This computer is fast.

 

CHANGE TO

 

6000[F]This computer is fast.

 

1[F]This computer is fast.

 

6000a[F]This computer is fast.

 

3[F]This computer is fast.

 

6000b[F]This computer is fast.

 

 _______________________________________________
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

  • Follow-Ups:
    • Re: Find duplicate numbers and replace
      • From: BareFeet <email@hidden>
    • Re: Find duplicate numbers and replace
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Re1: Mail scripting : How to select… continuation... (From: Philip Aker <email@hidden>)

  • Prev by Date: Yet another Newbie
  • Next by Date: Re: Find duplicate numbers and replace
  • Previous by thread: Re: Re1: Mail scripting : How to select… continuation...
  • Next by thread: Re: Find duplicate numbers and replace
  • Index(es):
    • Date
    • Thread