• 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: version numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: version numbers


  • Subject: Re: version numbers
  • From: Doug McNutt <email@hidden>
  • Date: Wed, 23 May 2007 10:13:54 -0600

At 17:03 +0200 5/23/07, Emmanuel wrote:
>Or, I was thinking recently, maybe AppleScript could do like Javascript with two new commands "join" and "split":
>
>split ("hello world", " ") -> { "hello", "world" }

If smile is going to do something like that remember that perl IS an Apple-provided tool where "split" is a commonly used command that would be useful - with the same argument sequence - in AppleScript.

@somelist = split /\t/, $tab-delimited_string;

Compared to "AppleScript's test item delimiters" it looks simple indeed. Note that the /\t/ might have been / +/ interpreted as a regular expression that would interpret more than one space as a single delimiter.

--

--> From the U S of A, the only socialist country that refuses to admit it. <--
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >version numbers (From: Chris Swain <email@hidden>)
 >Re: version numbers (From: Christopher Nebel <email@hidden>)
 >Re: version numbers (From: James Nierodzik <email@hidden>)
 >Re: version numbers (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Network file permission error
  • Next by Date: Re: version numbers
  • Previous by thread: Re: version numbers
  • Next by thread: Re: version numbers
  • Index(es):
    • Date
    • Thread