Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 483 Bytes
set question to display dialog "But it's sleeping! Are you sure you want to wake up the NAS?" buttons {"Yes", "No"} default button 1 with icon caution
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "python -c \"
import socket
data = '\\xff'*6+'\\x00\\x13\\xd4\\xdc\\xf2\\x80'*16
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
s.sendto(data, ('', 80))\""
end if
Jump to Line
Something went wrong with that request. Please try again.