Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. -- Line up a Python script for dynamically loading the private framework
  2. -- and invoking the required private methods to get current grayscale mode
  3. -- and set it to the opposite value.
  4. set toggleGrayScript to "python -c 'from ctypes import cdll
  5. lib = cdll.LoadLibrary(\"/System/Library/PrivateFrameworks/UniversalAccess.framework/UniversalAccess\")
  6. lib.UAGrayscaleSetEnabled(lib.UAGrayscaleIsEnabled() == 0)
  7. '"
  8. do shell script toggleGrayScript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement