• 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: lock the screen from the keyboard, win a prize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: lock the screen from the keyboard, win a prize
      • From: Philip Aker <email@hidden>
References: 
 >Re: lock the screen from the keyboard, win a prize (From: Paul Skinner <email@hidden>)

  • Prev by Date: Is-it a bug in the finder ?
  • Next by Date: Re: Is-it a bug in the finder ?
  • Previous by thread: Re: lock the screen from the keyboard, win a prize
  • Next by thread: Re: lock the screen from the keyboard, win a prize
  • Index(es):
    • Date
    • Thread