Jump to content

Wake on Lan via Workflow?


Recommended Posts

Hi there,

 

i wondered if it is possible to send a wake on lan trigger via workflow to my NAS..

 

so far i`ve tried this, but didn`t worked..

 

 

tell application "WakeOnLan"
    wakeup "192.168.178.xx"
end tell
 
(found in a forum - i`m not really into apple script ;-)
 
also found this one (does phyton work in Alfred?):
 
#!/usr/bin/env python
import socket
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
s.sendto('\xff'*6+'\x11\x22\x33\x44\x55\x66'*16, ('192.168.0.255', 9))
 
 
what i try to achieve:
 
1. Wake up NAS
2. Wait 20 sec (till NAS is awake)
3. Mount Volume "ITunes"
4. Launch iTunes (Music is on NAS) 
 
Thanks for your help!!!
 
best regards

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...