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

Re: Preference Files


  • Subject: Re: Preference Files
  • From: Philip Aker <email@hidden>
  • Date: Wed, 16 Sep 2009 14:53:53 -0700

On 2009-09-16, at 09:49:40, Mark J. Reed wrote:

AFAIK, POSIX format is the native pathname format of OS X., and the only one understood by operating system calls.

Not quite correct. It really depends on the layer you wish to address paths at. For the unix layer, of course it's POSIX paths. For CoreFoundation CFURLs (the lowest public Mac OS X framework layer), the paths may be specified with any of the following enumeration values:


enum {
    kCFURLPOSIXPathStyle = 0,
    kCFURLHFSPathStyle,
    kCFURLWindowsPathStyle
};

Also, although the trend looks like it's steering towards POSIX paths, I believe it's not safe to assume a preference file path will be stored as a POSIX path. For instance, on my 10.6.1 setup, com.apple.loginitems.plist still stores one of them in a key named "Alias" with what looks like 'furl' type of data.


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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
  • Follow-Ups:
    • Re: Preference Files
      • From: Shane Stanley <email@hidden>
References: 
 >Preference Files (From: Luther Fuller <email@hidden>)
 >Re: Preference Files (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Courier in 10.6
  • Next by Date: Re: Opening a Preference Pane by ID in a Localization-safe and 10.4-compatible Way
  • Previous by thread: Re: Preference Files
  • Next by thread: Re: Preference Files
  • Index(es):
    • Date
    • Thread