• 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-resolved.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text item delimiter-resolved.


  • Subject: Re: text item delimiter-resolved.
  • From: kai <email@hidden>
  • Date: Mon, 2 May 2005 16:44:54 +0100


On Monday, May 2, 2005, at 01:44 pm, Ruby Madraswala wrote:

I used the script example given below and it worked.

I did get quite a few suggestions to use “sed”, that’s so new for me. I did not find any reference to this command in Applescript The Definitive Guide book. Is this new or you just know by experience?

Whenever you see a shell script command, Ruby, you can usually check it out by opening Terminal and typing 'man someCommand' (without the quotes) in the Terminal window.


(And what does 'man' mean? Just type 'man man' in the Terminal window for an explanation.)

Taking a couple of the shell scripts suggested in this thread as examples, you'll see that 'sed' stands for "stream editor" and 'tr' means "translate characters". You should also get some idea of how the command may be used, along with the options available. (Don't worry if you still can't make too much sense of what you see - the syntax isn't always that obvious!)

However, your decision to go with Mark's suggestion for this particular job was a very sound one, IMO.

Here, for example, to replace numbers 1-9 with alpha characters "a"-"i" (as demonstrated in several of the examples suggested), his TID-based script is executed 11 times faster than 'tr' and 13 times faster than 'sed'.

---
kai

_______________________________________________
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-resolved. (From: "Ruby Madraswala" <email@hidden>)

  • Prev by Date: Re: Recovering Run Only script
  • Next by Date: Re: text item delimiter-resolved.
  • Previous by thread: Re: text item delimiter-resolved.
  • Next by thread: re: quit all visible applications...
  • Index(es):
    • Date
    • Thread