Help Writing an Apple Script!

Discussion in 'Mac Programming' started by whyrichard, Dec 4, 2009.

  1. whyrichard macrumors 68000

    Aug 15, 2002

    I need help writing an applescript, specifically for "WakeOnLan".
    The instructions read:

    Use of WakeOnLan in AppleScript
    WakeOnLan understands two AppleScript commands, 'wakeup' and 'puttosleep'. If you use AppleScript to automate processes (e.g. backup), and you need to make sure remote computers you access are not sleeping, WakeOnLan can help. Just include the following lines in your AppleScript:
    *see attachment*
    Instead of '' in the example above, use any computer name or IP address known by WakeOnLan. Make sure the spelling is exactly like it is in the WakeOnLan computer table. Note that 'puttosleep' will ask for the login passwords if they have not been remembered by Keychain.

    I tried it but i could not get it to work. I am a complete newb with applescripts... can someone tell me more clearly how to do this? Or just whip it up if it's easy?



    Attached Files:

  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Have you added the IP address of the machine you want to wakeup to Wake On LAN? If so just stick that address where the IP address is in the script.

    I think you'll have to tell us exactly which bit you have trouble with: this is all a bit generic...

Share This Page