Get UTF8 Posix Path

Get the real POSIX path tool
Download

Get UTF8 Posix Path Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Roger Jolly
  • Publisher web site:
  • http://homepage.mac.com/roger_jolly/software/index.html#zipcleaner
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 31 KB

Get UTF8 Posix Path Tags


Get UTF8 Posix Path Description

Get the real POSIX path tool Get UTF8 Posix Path is an AppleScript that provides a routine, with detailed documentation, to work around a bug where the POSIX path command incorrectly assumes that the shell will know how to handle all your Macintosh characters.With OS X, Apple brought all the power of Unix to the Mac, but they did even more. As you know, the Mac already had a very powerful scripting language, AppleScript, that could do all sorts of things that were hard or even impossible with Unix shell scripts. Thanks to the implementation of the do shell script command in AppleScript, it became possible to combine both Unix and AppleScript and use the strengths of both.To work with shell scripts, though, requires that you know the location of a file or folder in a way that Unix can understand, the POSIX path of the item. Apple kindly included the POSIX path command to allow you to transform a Macintosh style path into a POSIX path. Unfortunately, this routine is flawed.By default, the shell functions with the UTF8 text encoding. Your Mac however, uses a much richer set of characters, but the POSIX path command assumes that shell will know how to handle all your Macintosh characters. It can't.You might never notice it, because if you use English you'll mostly use just the characters printed on you keyboard for your filenames. There are however other languages in the world that tend to use "strange characters" like accents or even things like "ß". When you have those in a posix path, the shell will misunderstand what you want and your script will fail. What's New in This Release: · Based on comments and questions I've received, I have added more detailed explanations of various Unix commands. Remember though, every time you want to know more about a Unix command, a good place to start is the built-in reference manual in the terminal. Just type "man" followed by the command you want to know something about. So if you are curious about the ls command, type "man ls". Occasionally a command is followed by a dash and some letters. These are options, e.g. "ls -d" or "ln -s". When looking up the command with man, don't type these.


Get UTF8 Posix Path Related Software