[Date Index] [Thread Index] [Author Index]
Re: The << command on a Mac???
Martin Gagne <mgagne at gmc.ulaval.ca> wrote: > I want to use the Get (<<) command on a Mac with Mathematica 2.2.2. > It works if my files are in the Mathematica's directory. But if > they aren't, I don't know how to get them. > > On Unix I use this command: > <<../directory/file.ma You should remember that on the Mac OS the "/" separator between directories is ":". Use e.g. <<"System:Desktop Folder:Buchhaltungssachen:my file.txt" "System" is the name of the volume, Desktop Folder the desktop (here you can use the first level directory of your volume), Buchhaltungssachen a directory on the desktop and "my file.txt" a file in it. Another method is: You can set your current working directory to your prefered directory. You get the list of directories which are in your search path with: $Path Say e.g. SetDirectory["System:Desktop Folder:Buchhaltungssachen"] With this command you set your current working directory and append it to the search path ($Path). If you want to remove the last entry of $Path you say ResetDirectory But be carefully. With SetDirectory[...] you append "..." to your $Path. With ResetDirectory you remove the last entry in $Path. If you use ResetDirectory multiple you can remove more entries... (which might cause errors on Unix machines). Kind regards, Harald -- Harald von Aschen eMail: von_aschen at uni-duisburg.de