Hi TDH,
For issue #1, the Finder's 'put away' command will let you unmount a server.
For issue #2, I agree that the Finder can be stubborn about replacing an existing item (or deleting it without an annoying prompt) on some remote servers, including Apple's own "iDisk" server. One way to work around this is to use a scripting addition (OSAX) that can silently delete the existing item. (E.g., the
Jon's Commands OSAX has a 'deleteFile' command that works for a file or a folder.) With this approach, your script could first use the Finder's 'exists' command to check whether the item's already there on the server and, if so, use the OSAX's "delete" command to silently get rid of it. Then, your script would just copy the item over to the server as usual. [Actually, I myself use this approach in my "iDisk upload" script.]
Regards,
--Paul