Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (13 sloc) 355 Bytes
#!/usr/bin/ruby
# Dropzone Destination Info
# Name: Sleep
# Description: Puts your Mac to sleep.
# Events: Clicked
# Creator: Paul William
# URL: http://entropytheblog.com
# IconURL: http://aptonic.com/destinations/icons/sleep.png
def clicked
$dz.finish("Sleeping...")
$dz.url(false)
`osascript -e 'tell application "System Events" to sleep'`
end
Something went wrong with that request. Please try again.