• 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: How to Do This Without Smile or Satimage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Do This Without Smile or Satimage


  • Subject: Re: How to Do This Without Smile or Satimage
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 01 Mar 2012 18:28:32 -0600

On Mar 01, 2012, at 05:51, Axel Luttgens wrote:
> Le 1 mars 2012 Γ  01:27, Christopher Stone a Γ©crit :
>> I believe that neither one is directly.
>
> According to its man page, sed(1) should take LANG and LC_* environment variables into account.
> On the other hand, "do shell script" defaults to the C locale.
> So, let's try (Lion here) :
>
> 	set myText to "This 😝😝😝 is 😣😷😝 an 😣😷 experiment.😝"
> 	set cmd to "LANG=fr_FR.UTF-8 sed 's/😝😝*//g' <<< " & quoted form of myText
> 	do shell script cmd
> 	--> "This  is 😣😷 an 😣😷 experiment."
>
> The man page thus seems to tell the truth.

______________________________________________________________________

Hey Axel,

Thanks much.  This is good news.

--
Best Regards,
Chris


 _______________________________________________
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: 
 >Re: How to Do This Without Smile or Satimage (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Gatekeeper
  • Next by Date: Re: Gatekeeper
  • Previous by thread: Re: How to Do This Without Smile or Satimage
  • Next by thread: Wanted: A Text View for AppleScript
  • Index(es):
    • Date
    • Thread