title: Equivalents of XDG_CONFIG_HOME and XDG_DATA_HOME on Mac OS X?
body: <p>I am planning to develop a cross-platform script. On Linux and other operating systems, it will store configuration in <code>XDG_CONFIG_HOME</code> and data files (specifically, downloaded plugins) in <code>XDG_DATA_HOME</code>. On Windows, it will use <code>APPDATA</code> for both (unless someone has a better idea). However, what would be the proper thing to do on Mac OS X?</p>
  
  <p>On my first glance through a handy Macbook's <code>~/Library</code> directory, I saw <code>Preferences</code> and <code>Application Support</code> folders. I was originally planning to use those, but <code>Preferences</code> seems to just contain plists with reverse domain names like <code>com.apple.foo.bar.baz.plist</code>, and every folder in <code>Application Support</code> corresponds to a bundle in <code>/Applications</code>, so I'm not sure how well the system would react to files that don't match its standards. Storing them directly in <code>~/Library</code> might be an option, but I don't want to pollute it with a stray <code>myscript.conf</code> file if there's a better place for it.</p>
  
  <p>Where should I store these files? (And please don't say just <code>~/.myscript</code>. I know it's the Unix tradition, but it annoys me to see random dotfiles in the home directory.)</p>