• 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: text item delimiter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text item delimiter


  • Subject: Re: text item delimiter
  • From: Gnarlodious <email@hidden>
  • Date: Fri, 29 Apr 2005 09:36:38 -0600

Entity Rob Stott spoke thus:

> ...theres almost certainly a better way that doesn't involve that many 'sed's
> for multiple digits but I'm not sure how.


do shell script "cat " & theFile & " | sed-e 'y/abcdefghi/123456789/' " & ¬
    "-e 's/j/10/g' " & ¬
    "-e 's/k/11/g' " & ¬
    "-e 's/l/12/g' " & ¬
    "-e 's/m/13/g' " & ¬
    "-e 's/n/14/g' " & ¬
    "-e 's/o/15/g' " & ¬
    "-e 's/p/16/g' " & ¬
    "-e 's/q/17/g' " & ¬
    "-e 's/r/18/g'  " & ¬
    "-e 's/s/19/g'  " & ¬
    "-e 's/t/20/g'  " & ¬
    "-e 's/u/21/g'  " & ¬
    "-e 's/v/22/g' " & ¬
    "-e 's/w/23/g' " & ¬
    "-e 's/x/24/g' " & ¬
    "-e 's/y/25/g' " & ¬
    "-e 's/z/26/g' "


-- Gnarlie


 _______________________________________________
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: 
 >Re: text item delimiter (From: Rob Stott <email@hidden>)

  • Prev by Date: Re: Exiting from an Applescript
  • Next by Date: Re: text item delimiter
  • Previous by thread: Re: text item delimiter
  • Next by thread: Re: text item delimiter
  • Index(es):
    • Date
    • Thread