Well, I found a workaround: I need to specify the folder absolutely, and not use the ~ shortcut. In addition, I use /Volumes at the very beginning. Thus, the code becomes:
var f = new Folder("/Volumes/apache HD/Users/apache/Desktop/my_new_fodler"); f.create();
And that seems to work, finally. Thanks for your help, @ Anna Forrest and @fabiantheblind! (You seem to be a resident ExtendScript expert here.)
Sturm source share