Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

whyrichard

macrumors 68000
Original poster
Aug 15, 2002
1,716
9
Hello!

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 '192.168.1.22' 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?

thanks,

r.
 

Attachments

  • Screen shot 2009-12-04 at 3.43.08 PM.png
    Screen shot 2009-12-04 at 3.43.08 PM.png
    57 KB · Views: 261
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...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.