Jump to content

mesetluk

Member
  • Posts

    5
  • Joined

  • Last visited

Posts posted by mesetluk

  1. 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

     

×
×
  • Create New...