Question: How can I change the document properties attribute in a seperate file

I have a file  g:/temp.mw
From a seperate maple worksheet I want to modify the Document Property `Author` to  "aname" in the file g:/temp.mw

One could simply ...
open the worksheet g:/temp.mw  and
with(DocumentTools):
SetDocumentProperty(`Author` , "aname"):

That's okay, but how to change it remotely?  I don't know if it's even possible.  I was trying ...

fd:=fopen(`g:/temp.mw`,WRITE):
fprintf(fd,SetDocumentProperty(`Author`,"aname"))

Unfortunately and of course it throws an error.  I was looking up the sytem command but I don't think that's what I want.  Does anyone have any ideas?

Please Wait...