Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- TODO: make this run reliably in the background...
- set isRunning to false
- if application "System Preferences" is running then set isRunning to true
- tell application "System Preferences"
- activate
- reveal anchor "Privacy" of pane "com.apple.preference.security"
- end tell
- tell application "System Events" to tell process "System Preferences"
- delay 0.3
- click button "Reset Advertising Identifier" of group 1 of tab group 1 of window "Security & Privacy"
- delay 0.2
- click button "Reset identifier" of sheet 1 of window "Security & Privacy"
- end tell
- if isRunning is false then
- quit application "System Preferences"
- end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement