• 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: tutorial on HFS versus finder and POSIX file path ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tutorial on HFS versus finder and POSIX file path ?


  • Subject: Re: tutorial on HFS versus finder and POSIX file path ?
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 17 Oct 2006 09:16:19 -0700

On Oct 17, 2006, at 8:45 AM, Mark J. Reed wrote:

The translation rules are simple:

Mac OS:  absolute paths start with the volume name; the separator is a
colon.  A pathname starting with a colon is relative, but it's hard to
say to what, since there's no well-defined concept of a "working
folder" in traditional Mac OS.

POSIX: absolute paths start with a /, which is also the separator.
The boot volume is /, any other mounted volumes are /Volumes/volname/.
Relative paths start with a name with no leading /.

A file that shows up in the Finder as "foo/bar" will show up in the
shell as "foo:bar".

Isn't there also the one that starts with "~/" indicating a path from home directory?


--
"Better Plan B than plan d & c."


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: tutorial on HFS versus finder and POSIX file path ?
      • From: Doug McNutt <email@hidden>
    • Re: tutorial on HFS versus finder and POSIX file path ?
      • From: "Mark J. Reed" <email@hidden>
References: 
 >tutorial on HFS versus finder and POSIX file path ? (From: Yvon Thoraval <email@hidden>)
 >Re: tutorial on HFS versus finder and POSIX file path ? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: tutorial on HFS versus finder and POSIX file path ?
  • Next by Date: Re: XCode 2.4 Affects "do shell script"?
  • Previous by thread: Re: tutorial on HFS versus finder and POSIX file path ?
  • Next by thread: Re: tutorial on HFS versus finder and POSIX file path ?
  • Index(es):
    • Date
    • Thread