I want to set the current working directory for my session with SetDirectory
.
Suppose I have a directory called MyNewFolder
located in the default "documents" directory. On Mac it is located in
/Users/my_user_name/Documents/MyNewFolder
How can I set this directory as the working document using $UserDocumentsDirectory
?
Of course I can do
SetDirectory["/Users/my_user_name/Documents/" <> "MyNewFolder"]
But to make this expression more user-wide, I want a command like
SetDirectory[$UserDocumentsDirectory <> "MyNewFolder"]
But, of course, it doesn't work.
Any idea for how to do that?