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

Rép : what the heck - text manipulation script


  • Subject: Rép : what the heck - text manipulation script
  • From: Yvan KOENIG <email@hidden>
  • Date: Tue, 18 Jul 2006 18:57:53 +0200

Le 18 juil. 2006 à 18:40, Natalie Lambert a écrit :

set AppleScript's text item delimiters to ""

set x to "OCT 05    @St. Louis" as text
set v to text item 2 of x
set y to word 4 of x
return {v, y}


Yes but

set x to "OCT 05    @St. Louis" as text
set AppleScript's text item delimiters to " " --  a space
set v to text item 2 of x
set y to text item 6 of x
set AppleScript's text item delimiters to "" -- empty string
return {v, y}


returns: {"05", "@St."}


set x to "OCT 05 @St. Louis" as text set AppleScript's text item delimiters to " " -- a space set z to text items of x set AppleScript's text item delimiters to "" -- empty string return z


returns {"OCT", "05", "", "", "", "@St.", "Louis"}

Yvan KOENIG

_______________________________________________
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


  • Prev by Date: Re: what the heck - text manipulation script
  • Next by Date: Re: what the heck - text manipulation script
  • Previous by thread: Subject: Wdth and depth of current screen resolution
  • Next by thread: possible to pass direct object param from cocoa to applescript?
  • Index(es):
    • Date
    • Thread