Skip to content

Instantly share code, notes, and snippets.

View gsilkey's full-sized avatar

Geoffrey Silkey gsilkey

View GitHub Profile
@freespace
freespace / gist:1322095
Created October 28, 2011 11:30
Apple script to lock screen using keychain's menu item
(*
Probe Menu Bar
This script uses UI element scripting to return a list of every menuitem
of every menu for every application currently running.
If "Enable access for assistive devices" is not checked,
this script will open the Universal Access System Preference and ask
the user to check the checkbox.