• 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
Do shell script and special characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Do shell script and special characters


  • Subject: Do shell script and special characters
  • From: Matthew Stuckwisch <email@hidden>
  • Date: Sat, 19 Oct 2002 10:46:29 -0500

I'm trying to work on an update checker for my AS Studio app, which is localized to four different languages. Part of the info included is what has changed. This, of course, is localized, which includes characters with diacriticals. The problem I've run into is that trying to get normal output from shell applications on this is difficult:

do shell script "cat foo.txt"
do shell script "curl http://foo.bar.com/foo.txt";

Both of these error if the file contains any non-7 bit ASCII characters. With cat, I can work around by using the -v option, however, why should it be erroring without it? In the terminal it doesn't error, it just replaces the special characters with a ? of sorts. While CLI utilities that don't have an equivalent to -v of cat can be worked around with "foo -bar > /tmp/foo.txt;cat -v /tmp/foo.txt", it's not exactly the prettiest solution in the world.


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa}(esperNET / GamesNet) | [E-mail]{email@hidden}
_______________________________________________
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.

  • Follow-Ups:
    • Re: Do shell script and special characters
      • From: John Delacour <email@hidden>
  • Prev by Date: Re: "choose file name" Redux
  • Next by Date: Re: "choose file name" Redux
  • Previous by thread: Re: "choose file name" Redux
  • Next by thread: Re: Do shell script and special characters
  • Index(es):
    • Date
    • Thread