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

Re: Find duplicate numbers and replace


  • Subject: Re: Find duplicate numbers and replace
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 14 May 2008 12:59:28 -0400

Incomplete fix.  Here's the whole new version.

do shell script ("perl -i.bak -e 'undef $/; $_ = <>; while
(/(\\d+)\\[F\\]/g) {  my $n = $1; my $a = \"a\"; substr($_, pos($_))
=~ s/(^|\\D)$n\\[F\\]/$1 . $n . $a++ .\"[F]\"/ge;} print;' " & POSIX
path of myTextFile)
 _______________________________________________
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: "Mark J. Reed" <email@hidden>
References: 
 >Re: Re1: Mail scripting : How to select… continuation... (From: Philip Aker <email@hidden>)
 >Find duplicate numbers and replace (From: "Script2" <email@hidden>)
 >Re: Find duplicate numbers and replace (From: "Mark J. Reed" <email@hidden>)
 >Re: Find duplicate numbers and replace (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Find duplicate numbers and replace
  • Next by Date: Re: Address Book stops indexing after editing Notes field w/ Applescript?
  • Previous by thread: Re: Find duplicate numbers and replace
  • Next by thread: Re: Find duplicate numbers and replace
  • Index(es):
    • Date
    • Thread