• 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: Remove extra spaces from a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove extra spaces from a string


  • Subject: Re: Remove extra spaces from a string
  • From: John Delacour <email@hidden>
  • Date: Mon, 9 Jun 2003 22:44:01 +0100
  • Mac-eudora-version: 6.0b20

At 11:09 pm +0200 9/6/03, Emmanuel wrote:

>set withoutspaces to do shell script ("echo " & withspaces & " | tr -s ' '")
display dialog "After: " & withoutspaces
--
-------------------------------------------------------------------------------------------

Since we mention "tr" we have to mention also that it works only on strings up to 64KB.

And since we mention display dialog .....




.
_______________________________________________
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: 
 >Re: Remove extra spaces from a string (From: James Cass <email@hidden>)
 >Re: Remove extra spaces from a string (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Remove extra spaces from a string
  • Next by Date: Re: Remove extra spaces from a string
  • Previous by thread: Re: Remove extra spaces from a string
  • Next by thread: Re: Remove extra spaces from a string
  • Index(es):
    • Date
    • Thread