Re: Lion -- Disable fast user switching via command line and Applescript.
Re: Lion -- Disable fast user switching via command line and Applescript.
- Subject: Re: Lion -- Disable fast user switching via command line and Applescript.
- From: "Daniel ." <email@hidden>
- Date: Wed, 04 Jan 2012 20:19:10 -0500
On Jan 4, 2012, at 3:29PM, Luther Fuller wrote:
So, I tried another experiment in Snow Leopard ...
(and wrote a bunch of stuff here which I then erased when I realized I knew how to get this to work!)
This script just works ...
do shell script "defaults write /Library/Preferences/.GlobalPreferences MultipleSessionEnabled -bool true"
set accountsPane to (((path to library folder from system domain) as text) & "PreferencePanes:Accounts.prefPane") as alias tell application "Finder" to open accountsPane delay 1 tell application "System Preferences" to quit
Try it in Lion and let us know what happens.
So glad it works for David, but on my Lion system I get:
error "2012-01-04 16:36:17.971 defaults[1706:4203] Could not write domain .GlobalPreferences; exiting" number 1
So, then I add with administrator privileges after the shell code.
No errors but no go either. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden