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

Re: Trim?


  • Subject: Re: Trim?
  • From: John Delacour <email@hidden>
  • Date: Sat, 3 Aug 2002 02:35:46 +0100

At 2:37 pm -0700 2/8/02, email@hidden wrote:

Does anyone know if there's a simple way to trim white space off of a
string, or should I just loop through it and take them out myself?

set s to " This is a string "
set AppleScript's text item delimiters to {space}
set s to "" & words of s
set AppleScript's text item delimiters to {""}
return s

or use Regular Expressions in do shell script "perl -e '.....'"

JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Trim? (From: email@hidden)

  • Prev by Date: Re: making a new folder
  • Next by Date: Re: Why root?
  • Previous by thread: Trim?
  • Next by thread: Re: Trim?
  • Index(es):
    • Date
    • Thread