Re: Automatic login
Re: Automatic login
- Subject: Re: Automatic login
- From: Axel Luttgens <email@hidden>
- Date: Sat, 9 May 2009 14:08:34 +0200
Le 9 mai 09 à 12:48, Jess McKenzie a écrit :
I see... so i need to consider
"com.apple.userspref.DisableAutoLogin". Thank you i did not think of
this. But from what i can see, it is a hidden file within
the .GlobalPreferences.plist. Any idea how i could modify this file
to suit my particular needs? I have tried adding the following to my
applescript:
do shell script "sudo defaults write /Library/
Preferences/.GlobalPreferences com.apple.userspref.DisableAutoLogin -
bool TRUE"
...but it doesn't seem to do anything.
I am running Leopard, btw.
Any ideas?
Try without sudo and by using "with administrator privileges":
do shell script "defaults write /Library/
Preferences/.GlobalPreferences com.apple.userspref.DisableAutoLogin -
bool TRUE" with administrator privileges
To get an idea of the problems one may encouter with sudo from within
"do shell script", just try:
do shell script "sudo ls"
More info is available at:
http://developer.apple.com/technotes/tn2002/tn2065.html
HTH,
Axel _______________________________________________
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