Setting Computer Name and Owner in File Sharing
Setting Computer Name and Owner in File Sharing
- Subject: Setting Computer Name and Owner in File Sharing
- From: "Pete Willis" <email@hidden>
- Date: Thu, 12 Apr 2001 17:18:17 +0100
I have written a script that sets the username and user's full name to the computer name and owner name in Filesharing control panel. This was run after installing a clean OS version 9.04. We have since had to upgrade our OS to 9.1 (due to the new 533 G4's only taking 9.1 OS) and now my script fails with error 'File Sharing got an error. An error of type -415' the jist of the script is below
set systemrecord to {username:"JohnS", FullUserName:"John smith"}
tell application "File Sharing"
activate
set file sharing to false
set computer name to ((the username of my systemrecord) as international text)
set owner name to ((the FullUserName of my systemrecord) as international text)
quit
end tell
like I said it worked fine on OS9.04 but now? I have tried removing the as international text and other variants but with no joy.
Is there a bug with the new version of OS or am I overlooking something obvious
Help much appreciated
Thanks in advance
Pete Willis
D'Arcy Group UK
www.Darcyww.co.uk