• 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
Re: Lion -- Disable fast user switching via command line and Applescript.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Lion -- Disable fast user switching via command line and Applescript. (From: David Kahn <email@hidden>)
 >Re: Lion -- Disable fast user switching via command line and Applescript. (From: "Daniel ." <email@hidden>)
 >Re: Lion -- Disable fast user switching via command line and Applescript. (From: David Kahn <email@hidden>)
 >Re: Lion -- Disable fast user switching via command line and Applescript. (From: Luther Fuller <email@hidden>)
 >Re: Lion -- Disable fast user switching via command line and Applescript. (From: David Kahn <email@hidden>)
 >Re: Lion -- Disable fast user switching via command line and Applescript. (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: vi to do Shell Script
  • Next by Date: talk an asset box
  • Previous by thread: Re: Lion -- Disable fast user switching via command line and Applescript.
  • Next by thread: Fwd: Lion -- Disable fast user switching via command line and Applescript.
  • Index(es):
    • Date
    • Thread