<>
Eric said
Though this solution is Windows based, you could change the shell "attrib" command
to something like:
!chmod a+w "/user/username/filenamehere.txt"
Note that on *nix systems (incl Mac OS X) you must not only be able to write the file (for which you need w permission on the file); you also need rwx permission on the enclosing directory. The 'execute' (x) permission is needed to create a directory listing, without which the OS cannot modify the file, even if the file itself is w:rwx (everyone can do everything).
You don't really need Disk Utility to check (or change) permissions in Mac OS X; within Stata, you could
. !ls -ld /users/baum/documents/stata
which would show you the current permissions on that particular directory (which you may well not have; it is an arbitrary name).
Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html
An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html
An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/