Guest User

Untitled

a guest
Jan 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. set myVolume to output volume of (get volume settings)
  2. set myVolume to (myVolume + 2)
  3. set volume output volume myVolume
  4.  
  5. tell application "PowerMate"
  6. set aDevice to first device
  7. tell aDevice
  8. make light state with properties {state type:steady, brightness:(myVolume / 100), name:"Volume"}
  9. end tell
  10. end tell
Add Comment
Please, Sign In to add comment