• 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: Dave Balderstone <email@hidden>
  • Date: Fri, 29 Apr 2005 08:32:53 -0600


On Apr 29, 2005, at 8:25 AM, Ruby Madraswala wrote:


Is this doable using text item delimiters, I tried it's not working. All I want to do is search a text file replace all occurrence of 1 to a, 2 to b.........................


Set FileText to read file tmptw from 1
Set Applescript's text item delimiters to {"1","2","3","4"}
Set wordlist to text items of FileText
Set Applescript's text item delimiters to {"a","b","c","d"}
Set FileText to wordlist as text


You can't set TIDs to multiple items. You'll have to do them one at a time.


_______________________________________________
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


  • Follow-Ups:
    • Re: text item delimiter
      • From: Emmanuel <email@hidden>
    • Re: text item delimiter
      • From: Martin Orpen <email@hidden>
References: 
 >text item delimiter (From: "Ruby Madraswala" <email@hidden>)

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