Re: How to Do This Without Smile or Satimage
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