Toggle prefers reduced motion

Open toggle-prefers-reduced-motion in Script Kit

// Menu: Toggle Reduced Motion
// Description: Switches osx "prefers reduced motion" flag
// Author: Ollie W
// Twitter: @pxlprfct
import "@johnlindquist/kit";
// Credit (https://stackoverflow.com/users/6844169/wch1zpink) -> https://stackoverflow.com/a/60571303
await applescript(`
tell application "System Events"
repeat until exists of checkbox "Reduce motion" of tab group 1 of ¬
group 1 of window "Accessibility" of application process "System Preferences"
delay 0.1
end repeat
click checkbox "Reduce motion" of tab group 1 of ¬
group 1 of window "Accessibility" of application process "System Preferences"
end tell`);