¿Hay alguna manera de save las preferences de Mac OS X en un file de shell?

Cada vez que reinstalo mi Mac OS y / o compro una Mac nueva, tengo que configurar manualmente casi todas las opciones de mouse, dock, etc.

Me gustaría saber si Mac OS o algún software puede proporcionar alguna forma de save todas las configuraciones que configuré con la aplicación System Preferences en un file de shell, creando algo así como https://github.com/mathiasbynens/ Mathias Bynens dotfiles / blob / master / .macos

  • ¿Hay algún lector de Mac RSS que muestre lo que no se haya leído en el menu del Dock?
  • ¿Por qué el atajo de dictionary no es confiable usando Chrome?
  • Touch ID disponible solo después de dormir, pero no cuando se inicia la computadora portátil
  • Maximiza automáticamente las windows cuando pasas por ellas usando cmd + tab
  • ¿Es posible ejecutar Mountain Lion en hardware más antiguo utilizando una solución de virtualización?
  • La voz de Siri en macOS Sierra no es natural
  • ¿Cómo hacer que la MacBook se conecte automáticamente a diferentes networkinges wifi como se desee?
  • No se puede matar el process que se muestra entre paréntesis
  • OSX Startup Manager (pantalla de selección de la unidad de arranque) lenta / sin respuesta en Macbook Pro (principios de 2015)
  • ¿Por qué Mac Terminal restring dos commands consecutivos cuando son iguales?
  • Funciones trigonométricas inversas en Calculadora
  • ¿Cómo conseguir que el keyboard externo de Apple acepte la input de la tecla modificadora desde el keyboard interno de la Macbook (y viceversa)?
  • 6 Solutions collect form web for “¿Hay alguna manera de save las preferences de Mac OS X en un file de shell?”

    Producir automáticamente un script para hacer todos los cambios necesarios es casi imposible. Los administradores de sistemas Mac pasan muchas horas en bares oscuros bebiendo cerveza o bourbon e intercambiando fragments de estos files: somos reacios a compartir todo ese trabajo a less que esté preparado para pagar la count.

    En realidad, la manera más fácil de capturar los cambios de configuration es usar snapshotting.

    Tome una copy de InstallEase e haga una instantánea de su nueva Mac. Ahora haga toda la configuration que desee y puede tomar otra instantánea y crear un instalador que instalará los files modificados en una nueva Mac.

    Por supuesto, pueden popup complicaciones al aplicar los cambios a una nueva versión del sistema operativo, pero es por eso que bebemos el bourbon.

    Las Preferences del sistema parecen estar almacenadas en varios lugares, dependiendo de si son específicas del usuario o del sistema. Muchos de ellos se almacenan en /Library/Preferences/ o $HOME/Library/Preferences/ (para configuraciones por usuario). Pero cada panel de preferences tendrá su propia forma de almacenarlos.

    Puede ver qué preferences se almacenan de esta manera escribiendo:

     defaults read <domain> 

    Donde <domain> es el inicio del nombre de file en las preferences de su sistema por usuario o la ruta completa a un file .plist . Por ejemplo:

     defaults read com.apple.screensaver defaults read /Library/Preferences/com.apple.screensaver 

    El primero mostrará su personalización por usuario de la configuration del protector de pantalla, mientras que el último mostrará la configuration del protector de pantalla del sistema.

    La configuration está organizada en gran medida por el panel de preferences, aunque no necesariamente tan sencillo. Es probable que tenga que search en /Library/Preferences y subcarpetas (especialmente SystemConfiguration ) para encontrarlas todas.

    Una opción sería simplemente copyr los files relevantes y volver a colocarlos en su lugar para nuevas instalaciones.

    Otra forma sería exportarlo e importarlo según sea necesario.

    Exportación de las preferences del sistema de administración de energía (ahorro de energía) a pm.plist:

     defaults export /Library/Preferences/SystemConfiguration/com.apple.PowerManagement pm.plist 

    Importación de esas preferences de pm.plist en la nueva computadora:

     defaults import /Library/Preferences/SystemConfiguration/com.apple.PowerManagement sysprefs.plist 

    Es posible que desee editar los diversos files .plist exportados si hay preferences específicas del sistema que desea / no desea compartir entre computadoras. De esta forma, puede tener algunas personalizaciones localmente, y el command de import no las sobrescribirá, simplemente agregue las que ha establecido en los files .plist . Puede usar el command defaults para modificar sus propios files .plist también (pero asegúrese de especificar la ruta completa al file, no solo un nombre, o puede que esté modificando sus preferences por usuario).

    La última vez que hice una reinstallation limpia copié toda la carpeta ~/Library/Preferences/ , y no tuve problemas debido a eso. La configuration de las versiones anteriores de las aplicaciones y las configuraciones específicas de Mac solo debe ignorarse. Casi no hay files en ~/Library/Preferences/ en una installation nueva, y si elimina todos los files en ~/Library/Preferences/ , los files de preferences se recrearán cuando sean necesarios.

    Los files de preferences para aplicaciones de espacio aislado ahora se almacenan en ~/Library/Containers/ , pero no sé si copyrlos en otra Mac podría causar problemas.

    También puede usar el Asistente de migration .

    O si .osx ruta .osx , puede .osx la salida de los defaults read por defaults read :

    1. Los defaults read|awk 'length<200'>/tmp/a ejecución son defaults read|awk 'length<200'>/tmp/a
    2. Cambiar algunas configuraciones
    3. Los defaults read|awk 'length<200'>/tmp/b;diff /tmp/[ab] ejecución son defaults read|awk 'length<200'>/tmp/b;diff /tmp/[ab]

    Puede ejecutar sudo opensnoop o usar fseventer para ver qué files se modifican cuando cambia las preferences de la GUI.

    Después de muchas horas buscando algo que sea, al less, útil para mi problema, encontré un website llamado Secrets , que proporciona una gran cantidad de commands comunes de Mac OS para "escribir defaults".

    De todos modos, gracias Tony y drfrogsplatless por darme aclaraciones y consejos que fueron útiles para mí.

    Mackup es lo que estás buscando. https://github.com/lra/mackup/tree/master/doc

    Aquí hay un Apple Script parcialmente completado que escribí en agosto de 2016 para mi Mac, publicado aquí como, bueno, la "testing de concepto" es un poco fuerte, pero es algo con lo que puedes jugar:

    (* Antes de ejecutar este script, primero debe otorgar mallas de Apple Script en Preferences del sistema -> Seguridad y privacidad -> Accesibilidad y permitir que Apple Script controle la computadora. Puede get una ventaja ejecutando el script hasta que falle en ese momento. punto. Luego, detenga la secuencia de commands, navegue hasta ese cuadro de dialog de Preferences y marque la casilla junto al Editor de secuencias de commands. Luego, puede volver atrás, eliminar todas las capturas de pantalla ya tomadas (para evitar duplicates) e iniciar de nuevo la secuencia de commands.

    ¿Por qué necesitas hacer esto? Debido a que algunos dialogs de preference, una vez abiertos y "fotografiados", deben cerrarse explícitamente con un clic del mouse en el button Cancelar. Apple Script no puede hacer eso a less que tenga los derechos "para controlar su computadora" dentro de ese prefijo. *)

     tell application "System Preferences" to quit delay 0.25 -- MAKE THE PREFS PICS FOLDER ON THE DESKTOP IF IT ISN'T THERE ALREADY. -- IF IT IS THERE ALREADY, NO CHECKING IS DONE WITH REFERENCE TO WHATEVER FILES ARE IN IT. tell application "Finder" if not (exists folder "Prefs Pics" of desktop) then make new folder with properties {name:"Prefs Pics", location:"desktop"} end if end tell tell application "System Preferences" activate -- THE PREFS ARE ORDERED BELOW ALPHABETICALLY. TO HAVE THEM SAVE THAT WAY, REMOVE THE ORDER ID (oid) VARIABLE FROM THE CODE LINE SETTING EACH FILENAME. OTHERWISE THE FILENAME WILL BE SET BASED ON THE GROUP AND ICON NUMBERS (ROW AND COLUMN) AS DISPLAYED WHEN SYSTEM PREFS ARE ARRANGED BY CATEGORY. -- GROUP 4 NO 3 APP STORE set oid to 43 set current pane to pane "com.apple.preferences.appstore" -- Now that the first pref window is up, get its name and assign it to a variable set nid to (get name of first window whose visible is true) -- Do the same for its ID set wid to (get id of first window whose visible is true) -- Now wait one second and capture the window, passing the wid varialble to screencapture's -l switch and the nid variable to the filename to be used, and save the file do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- note you can't be messing around with the computer until the script ends; otherwise you'll interfere and prolly capture wrong winders -- GROUP 4 NO 7 TIME MACHINE set oid to 47 set current pane to pane "com.apple.prefs.backup" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 3 NO 5 BLUETOOTH set oid to 35 set current pane to pane "com.apple.preferences.Bluetooth" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 4 NO 5 DATE & TIME set oid to 45 set current pane to pane "com.apple.preference.datetime" reveal anchor "DateTimePref" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "TimeZonePref" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "ClockPref" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 1 NO 2 DESKTOP & SCREEN SAVER -- NEEDS TROUBLESHOOTING TO SELECT LEFT PANE IN DESKTOP TAB set oid to 12 set current pane to pane "com.apple.preference.desktopscreeneffect" -- reveal anchor "DesktopPref" of current pane -- set nid to (get name of first window whose visible is true) -- set wid to (get id of first window whose visible is true) -- do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "ScreenSaverPref" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 2 NO 1 DISPLAYS set oid to 21 set current pane to pane "com.apple.preference.displays" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- reveal anchor "displaysArrangementTab" of current pane -- NEEDS TROUBLESHOOTING -- reveal anchor "displaysColorTab" of current pane -- NEEDS TROUBLESHOOTING -- reveal anchor "displaysGeometryTab" of current pane -- NEEDS TROUBLESHOOTING -- reveal anchor "displaysDisplayTab" -- NEEDS TROUBLESHOOTING -- GROUP 1 NO 3 DOCK set oid to 13 set current pane to pane "com.apple.preference.dock" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 2 NO 2 ENERGY SAVER set oid to 22 set current pane to pane "com.apple.preference.energysaver" -- reveal anchor "Schedule" of current pane -- NEEDS TO BE CLOSED BEFORE MOVING ON -- GROUP 1 NO 4 MISSION CONTROL set oid to 14 set current pane to pane "com.apple.preference.expose" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 3 NO 3 EXTENSIONS set oid to 33 set current pane to pane "com.apple.preferences.extensions" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 1 NO 1 GENERAL set oid to 11 set current pane to pane "com.apple.preference.general" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 3 NO 1 ICLOUD -- set oid to 31 -- set current pane to pane "com.apple.preferences.icloud" -- THIS PREFERENCE WAS NOT COPIED -- GROUP 3 NO 2 INTERNET ACCOUNTS -- set oid to 32 -- set current pane to pane "com.apple.preferences.internetaccounts" -- THIS PREFERENCE WAS NOT COPIED -- GROUP 2 NO 3 KEYBOARD set oid to 23 set current pane to pane "com.apple.preference.keyboard" -- NEEDS TROUBLESHOOTING reveal anchor "keyboardTab" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Text" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "shortcutsTab" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "InputSources" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "keyboardTab_ModifierKeys" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" tell application "System Events" to tell process "System Preferences" click button "Cancel" of sheet 1 of window "Keyboard" end tell -- GROUP 1 NO 5 LANGUAGE & REGTION set oid to 15 set current pane to pane "com.apple.Localization" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Region" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Language" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 2 NO 4 MOUSE set oid to 14 set current pane to pane "com.apple.preference.mouse" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 3 NO 4 NETWORK -- set oid to 34 -- set current pane to pane "com.apple.preference.network" -- GROUP 1 NO 8 NOTIFICATIONS -- set oid to 18 -- set current pane to pane "com.apple.preference.notifications" -- GROUP 4 NO 2 PARENTAL CONTROLS -- set oid to 42 -- set current pane to pane "com.apple.preferences.parentalcontrols" -- GROUP 2 NO 6 PRINTERS & SCANNERS -- set oid to 26 -- set current pane to pane "com.apple.preference.printfax" -- reveal anchor "fax" of current pane -- reveal anchor "share" of current pane -- reveal anchor "print" of current pane -- reveal anchor "scan" of current pane -- GROUP 1 NO 6 SECURITY & PRIVACY set oid to 16 set current pane to pane "com.apple.preference.security" reveal anchor "General" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "FDE" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Firewall" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Privacy" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Privacy_LocationServices" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Privacy_Contacts" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Privacy_Calendars" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Privacy_Reminders" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Privacy_Facebook" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Privacy_Accessibility" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Privacy_Diagnostics" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- reveal anchor "Privacy_Twitter" of current pane -- reveal anchor "Privacy_Weibo" of current pane -- reveal anchor "Privacy_TencentWeibo" -- reveal anchor "Privacy_Assistive" of current pane -- reveal anchor "Privacy_LinkedIn" of current pane -- reveal anchor "Advanced" of current pane -- GROUP 3 NO 6 SHARING set oid to 36 set current pane to pane "com.apple.preferences.sharing" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 2 NO 7 SOUND set oid to 27 set current pane to pane "com.apple.preference.sound" reveal anchor "effects" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "output" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "input" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 4 NO 4 DICTATION & SPEECH set oid to 44 set current pane to pane "com.apple.preference.speech" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "TTS" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Dictation" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 1 NO 7 SPOTLIGHT set oid to 17 set current pane to pane "com.apple.preference.spotlight" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "privacy" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "searchResults" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 4 NO 6 STARTUP DISK set oid to 46 set current pane to pane "com.apple.preference.startupdisk" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 2 NO 5 TRACKPAD set oid to 25 set current pane to pane "com.apple.preference.trackpad" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 4 NO 1 USERS & GROUPS set oid to 41 set current pane to pane "com.apple.preferences.users" reveal anchor "passwordPref" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "startupItemsPref" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "loginOptionsPref" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- reveal anchor "mobilityPref" of current pane -- set nid to (get name of first window whose visible is true) -- set wid to (get id of first window whose visible is true) -- do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" -- GROUP 4 NO 8 ACCESSIBILITY set oid to 48 set current pane to pane "com.apple.preference.universalaccess" set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Seeing_VoiceOver" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Switch" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Keyboard" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Seeing_Display" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Hearing" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Seeing_Zoom" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "SpeakableItems" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Media_Descriptions" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Mouse" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" reveal anchor "Captioning" of current pane set nid to (get name of first window whose visible is true) set wid to (get id of first window whose visible is true) do shell script "screencapture -T1 -l" & wid & " ~/Desktop/Prefs\\ Pics/" & oid & "\\ " & quoted form of (nid) & "\\ " & "$(date +%Y-%m-%d-%H%M%S).png" end tell tell application "System Preferences" to quit -- HELPERS FOR THE HOMEWORK THAT NEEDED TO BE DONE BEFORE THE SCRIPT COULD BE WROTEN -- GET ALL PANE ID'S -- tell application "System Events" -- tell application "System Preferences" -- get the id of every pane -- end tell -- end tell -- GET ALL PANE NAMES -- tell application "System Preferences" -- name of panes -- end tell -- GET THE ANCHOR NAME FOR A PARTICULAR PANE -- tell application "System Preferences" -- activate -- get the name of every anchor of pane id "com.apple.preferences.users" -- end tell 
    Loving Apple Products like poisoning (iPhone, iPad, iMac, Macbook, iWatch).