Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. -- TODO: make this run reliably in the background...
  2. set isRunning to false
  3. if application "System Preferences" is running then set isRunning to true
  4.  
  5. tell application "System Preferences"
  6. activate
  7. reveal anchor "Privacy" of pane "com.apple.preference.security"
  8. end tell
  9.  
  10. tell application "System Events" to tell process "System Preferences"
  11. delay 0.3
  12. click button "Reset Advertising Identifier" of group 1 of tab group 1 of window "Security & Privacy"
  13. delay 0.2
  14. click button "Reset identifier" of sheet 1 of window "Security & Privacy"
  15. end tell
  16.  
  17. if isRunning is false then
  18. quit application "System Preferences"
  19. end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement