Skip to content

Instantly share code, notes, and snippets.

Piotr Klubinski klubi

Block or report user

Report or block klubi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View approveEnrollment.scpt
tell application "System Preferences" to activate
tell application "System Events"
tell application process "System Preferences"
delay 5
set currentWindow to name of window 1
if currentWindow does not contain "Profiles" then
click button "Show All" of group 1 of group 2 of toolbar 1 of window 1
delay 5
click button "Profiles" of scroll area 1 of window "System Preferences"
You can’t perform that action at this time.