• 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
Privileged shutdown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Privileged shutdown


  • Subject: Privileged shutdown
  • From: Bernard Azancot <email@hidden>
  • Date: Sat, 24 Jul 2004 12:59:00 +0200

This shutdown dialog snippet is OK when the user is the administrator, but not with another user.

When I replace the administrator password by the other user one, nothing happens (the shudown does not occur).

--
if button returned of result is "OK" then
do shell script "/sbin/shutdown -h now" password "xxxx" with administrator privileges
end if
--

Any suggestion ?
Thanks in advance.

Regards,
Bernard
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Privileged shutdown
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Getting the default language with AppleScript
  • Next by Date: Re: CGI Applescript
  • Previous by thread: RE: Change mode in Photoshop
  • Next by thread: Re: Privileged shutdown
  • Index(es):
    • Date
    • Thread