Lock computer?

By old, how 'old' did you mean? 5 years? Or 30 years? My friend's laptop is about 4~5 years old... it is a PC too.
 
Old also varies by expense, but NiCad batteries were the worst in this respect. Newer means Lithium-Ion and Lithium polymer batteries. In between these is NiMH which has less memory problems but still is not wonderful. It will say what it is on the side of the battery.
 
This AppleScript will lock the screen providing you have the “Lock” icon displayed in your menu bar. You enable that through Key Chain Access preferences. I use this with a QuicKeys keyboard shortcut to lock the screen.

Code:
tell application "System Events" to tell the front menu bar of process "SystemUIServer"
	set foundMenu to false
	set menu_extras to value of attribute "AXDescription" of menu bar items
	repeat with x from 1 to the length of menu_extras
		if item x of menu_extras is equal to missing value then
			tell menu bar item x
				click
				tell first menu item of front menu
					if name is equal to "Lock Screen" then
						set foundMenu to true
						exit repeat
					end if
				end tell
			end tell
		end if
	end repeat
	if foundMenu is equal to false then
		keystroke return
	end if
end tell
 
I fought this forever trying to figure out the quickest and easiest way to lock my MBP, and I've been using SizzlingKeys, it's under the Extra's...

Robert
 
Why would you need some sort of utility or script? Just turn on the screensaver lock and add the lock to the menubar with Keychain Utility. Locking the screen is one click away, then.
 
Back
Top