Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: A python script to work around a sleep issue' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: A python script to work around a sleep issue
Authored by: johnsawyercjs on Feb 09, '08 12:55:13PM

As the hint says, this script is hard-coded to work with the hinter's Mac, at the line containing

'/Library/Preferences/ByHost/com.apple.screensaver.0016cb98e9e2'

...where 0016cb98e9e2 is his Mac's MAC (Media Access Control) address, usually the particular Mac's Ethernet (en0) address, which is a number unique to each Mac. To make a version of this script that would work on any Mac, without having to change the MAC address in this script manually, you'd need to use the "-currentHost" command (variable?), which finds your Mac's MAC address for you. But as to how to work that into this script, I don't know, though the man page for "defaults" may help.



[ Reply to This | # ]