• 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: POSIX path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POSIX path


  • Subject: Re: POSIX path
  • From: Jon Pugh <email@hidden>
  • Date: Wed, 9 Jan 2002 20:59:46 -0800

At 3:14 AM +0100 1/10/02, Sven-S. Porst wrote:
>do shell script "cat /Users/ssp/Desktop/Bla\\314\\210"
>
>but this also fails with the error message
>
> --> cat: /Users/ssp/Desktop/Bla314210: No such file or directory

You'll note that all your \ characters are gone. I'll bet you got double "double slashed." That means the "do shell script" command probably removed your double slashes and passed the proper thing to the "cat" command which then tried to escape all the slash characters again, meaning you might need to quadruple slash to get a single slash into the command.

But I think you mostly knew that.

Try this:

do shell script "cat /Users/ssp/Desktop/Bla\\\\314\\\\210"

>(a) Is there a way to convert the path to a representation that I can
>actually pass to command line tools?

Yes, rename it. That's the unix way. A common choice is "a", although "x" is also popular.

Good luck.

Jon


  • Follow-Ups:
    • Re: POSIX path
      • From: "Sven-S. Porst" <email@hidden>
References: 
 >POSIX path (From: "Sven-S. Porst" <email@hidden>)

  • Prev by Date: Re: OS9 and OSX Scripting Additions
  • Next by Date: Re: AppleScript and VBA
  • Previous by thread: POSIX path
  • Next by thread: Re: POSIX path
  • Index(es):
    • Date
    • Thread