I tried the following:
The documentation for
For a relative path name,
SetDirectorysets the directory relative to the current working directory.
So it seems that
SetDirectory interprets my argument as a relative path name. How can I get
SetDirectory to interpret my argument as an absolute path name, so that the result is
/Library/Mathematica instead of