mesetluk Posted March 18, 2013 Share Posted March 18, 2013 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 pythonimport sockets=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
frostie Posted March 18, 2013 Share Posted March 18, 2013 The apple script needs the app WakeOnLan (had problems with it). The python script however works. I use it my self in a workflow. It will start the machine with the MAC-adress 11:22:33:44:55:66 on the specified subnet. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now