Re: lock the screen from the keyboard, win a prize
Re: lock the screen from the keyboard, win a prize
- Subject: Re: lock the screen from the keyboard, win a prize
- From: Rob Morton <email@hidden>
- Date: Mon, 25 Nov 2002 11:03:09 -0500
on 11/23/02 10:50 PM, Paul Skinner at email@hidden wrote:
>
>
on SsaverPwordState(parameter)
>
set preferenceFile to "" & POSIX path of (path to preferences) &
>
"ByHost/com.apple.screensaver." & (words 2 thru -1 of (do shell script
>
"ifconfig en0 | grep ether"))
>
if parameter is not {} then do shell script "defaults write " &
>
preferenceFile & " askForPassword " & parameter
>
return (do shell script "defaults read " & preferenceFile & "
>
askForPassword ")
>
end SsaverPwordState
First, let me start by saying, I have no idea what the original request was.
I am only offering the way I use to get the MAC address for those really
stupid ByHost files...
do shell script "/sbin/ifconfig en0 | /usr/bin/awk '/ether/ {print $2}' |
/usr/bin/tr -d :"
Then feed that into whatever name I am looking for. This was not written by
me, but I have found it extremely nice.
Rob Morton
_______________________________________________
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.