• 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: what the heck - text manipulation script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what the heck - text manipulation script


  • Subject: Re: what the heck - text manipulation script
  • From: Bill Briggs <email@hidden>
  • Date: Tue, 18 Jul 2006 13:27:56 -0300

Title: Re: what the heck - text manipulation script
At 5:59 PM +0200 7/18/06, Yvan KOENIG wrote:
Le 18 juil. 2006 à 17:46, John C. Welch a écrit :

Try using "text item" instead of "word"

--

Funny

set x to "OCT 05    @St. Louis" as text
set v to every text item of x
return v

returns:

{"O", "C", "T", " ", "0", "5", " ", " ", " ", " ", "@", "S", "t", ".", " ", "L", "o", "u", "i", "s"}

 It's not so funny. AppleScript's default text item delimiters are {""}, so it treats each character in the string as a text item. If someone is getting "words" out of it, then they've changed the default text item delimiters to something else; probably a space.


which would be perfectly useless for Natalie Lambert

 Indeed, unless she purposely changes the text item delimiter to a space, but even with that the multiple spaces will have to be accommodated.

 - web
 _______________________________________________
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: what the heck - text manipulation script (From: "John C. Welch" <email@hidden>)
 >Re: what the heck - text manipulation script (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: what the heck - text manipulation script
  • Next by Date: Re: what the heck - text manipulation script
  • Previous by thread: Re: what the heck - text manipulation script
  • Next by thread: Re: what the heck - text manipulation script
  • Index(es):
    • Date
    • Thread