• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting Computer Name and Owner in File Sharing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: 8. Newbie to Applescript (Vincent Pyle): AppleScript books?
  • Next by Date: Re: EOF madness!
  • Previous by thread: Re: 8. Newbie to Applescript (Vincent Pyle): AppleScript books?
  • Next by thread: CGIs with MacOS 9.1 - problem
  • Index(es):
    • Date
    • Thread