Re: SetDirectory[ ] for Folders on the Mac Desktop?

*To*: mathgroup at smc.vnet.net*Subject*: [mg24780] Re: SetDirectory[ ] for Folders on the Mac Desktop?*From*: Brian Higgins <bghiggins at ucdavis.edu>*Date*: Thu, 10 Aug 2000 00:32:14 -0400 (EDT)*References*: <8mr1a0$1m8@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Hi, When I need to find the path for functions such as SetDirectory[ ] ,I use the following "trick". Evaluate the following statement in your notebook Experimental`FileBrowse[False] This brings up a file browse window. I select a file in a particular folder I want to set dierctory to and hit the choose button. This then pastes the file path into the notebook: Here is the output from a file in a folder on my desktop (Mac) "SystemDrive:Desktop Folder:Algebra:AlgebraQues.html" I then strip of the file name and paste the remaining string into the argument of SetDirectory SetDirectory["SystemDrive:Desktop Folder:Algebra"] Note that Desktop Folder is two words! I guess this is the reason why your path did not work on your system. The approach I have described works on Windows and Linux/Unix systems.I have found this approach most helpful when explaining to students how to read files or export files in Mathematica on an operating system where the path format is not familiar to them. Cheers Brian In article <8mr1a0$1m8 at smc.vnet.net>, AES <siegman at stanford.edu> wrote: > How can I SetDiretory[ ] to a folder that's on my Macintosh desktop? > > SetDirectory["myHardDisk:someHardDiskFolder"] works fine. > > SetDirectory["myHardDisk:someDesktopFolder"] doesn't. > > Neither does SetDirectory["myHardDisk:Desktop:someDesktopFolder"]. > > Using the Mac "Get Info" command on someHardDiskFolder or > someDesktopFolder seems to give the same form for either one, i.e. it > doesn't show any explicit "Desktop" aspect in the file path for the > latter case. > > Thanks siegman at stanford.edu > > Sent via Deja.com http://www.deja.com/ Before you buy.