Autosleep-Script, if sleep by command works its cheaper than a new dvd-drive ... |
Autosleep-Script, if sleep by command works its cheaper than a new dvd-drive ... |
|
KWS
InsanelyMac Protégé
|
![]() |
Aug 29 2009, 08:14 AM Post #1
|
|
This Applescript compares the time since last user input with the Sleeptime in Syspreferences, and if idletime is greater than Sleeptime - sends your machine to sleep. You must add It to Start Up Objects on your User Account ...
The script stops during time machine backups ... To explain it in detail: this is no solution for any sleep-issue with the except of not working AUTOMATIC-Sleep. If your machine goes to sleep by menu-command and wake without problems, you can use it ...
RIP.app.zip ( 25.33K )
Number of downloads: 558Added three little changes to stop script while itunes, dvd-player or QuickTime are playing...
RIP2.app.zip ( 26.5K )
Number of downloads: 316Added a possibility to select "sleep-resistant" programs (should support torrent downloads or dvd-rips with non-scriptable applications). This means: if a defined program is running the script stops, regardless of whether the prog is downloading, copying or doing just nothing ... . To add progs: Start the program you want to add. Then start Activity monitor to see the process-name of your prog to add (mostly the same). Right-click RIP3, show package contents, go to Contents/Resources/Scripts/, Double-click main.scpt In Applescript-Editor you will see (5th line): set Programme to {"xx", "xx", "xx"} Replace the xx with the name of your "sleep-resistant" process (program)Syntax must be exact the same as in Activity monitor, leave the quotes untouched. Sample: set Programme to {"Transmission", "xx", "xx"} Save the file, add RIP3 to Startupitems and everything should be up and running ...
RIP3.app.zip ( 27.75K )
Number of downloads: 185Heres a version (RIP3s(pecial!) with sleeptime hardcoded to 20 min. It solves a problem with the retrieving of settings from system preferences. Use it if RIP1-3 don't works (in rare cases set systemSleepDelay to 20 as integer change the 20 to any value (in min.) you prefer. Then save the script and add RIP3s to Startupitems.
RIP3s.app.zip ( 27.94K )
Number of downloads: 63So here at last a script that additionally monitors file transfers on LAN and harddisk by controlling CPU-Usage of Finder and AppleFileServer. Copying a large amount of files should now also prevent sleep ...
RIPlan.app.zip ( 26.85K )
Number of downloads: 7
RIP2lan.app.zip ( 28.3K )
Number of downloads: 15
RIP3lan.app.zip ( 29.46K )
Number of downloads: 42 |
KWS Autosleep-Script Aug 29 2009, 08:14 AM
iorr Works, great job.
Thanks Aug 29 2009, 09:29 AM
pet1 autosleep now works perfectly.. thank you. Aug 29 2009, 09:08 PM
rogerabc How do I install this please.
Manual sleep works ... Aug 30 2009, 10:03 PM
The Raton I think you have to put the script in the startup ... Aug 31 2009, 06:34 AM
Thijmus QUOTE (The Raton @ Aug 31 2009, 08:34 AM)... Sep 28 2009, 08:17 PM
helob QUOTE (Thijmus @ Sep 29 2009, 04:17 AM) h... Oct 31 2009, 04:06 AM
FormerlyKnownAs QUOTE (KWS @ Aug 29 2009, 09:14 AM) This ... Sep 28 2009, 01:51 PM
Thijmus QUOTE (KWS @ Aug 29 2009, 10:14 AM) This ... Sep 28 2009, 07:30 PM
pehera Try this little genius app
http://www.dragonone.co... Nov 1 2009, 01:59 PM
helob QUOTE (pehera @ Nov 1 2009, 09:59 PM) Try... Nov 1 2009, 03:57 PM
shockre hi,
i have sleep working, auto sleep working, wak... Nov 1 2009, 08:11 PM
d00d QUOTE (KWS @ Aug 29 2009, 04:14 AM) This ... Nov 2 2009, 02:21 AM
KWS If it works for you, its okay. I didnt know this s... Nov 2 2009, 08:18 AM
d00d QUOTE (KWS @ Nov 2 2009, 04:18 AM) If it ... Nov 2 2009, 12:52 PM
jamonda Will the system sleep when I'm typing, using i... Nov 30 2009, 03:00 AM
KWS QUOTE (jamonda @ Nov 30 2009, 04:00 AM) W... Nov 30 2009, 08:14 AM
krokko thanks, the script works fantastic . Dec 7 2009, 06:36 AM
keypox thanks man works well Dec 9 2009, 04:21 AM
LS8 Does it disable autosleep when watching video in Q... Dec 10 2009, 09:03 AM
KWS QUOTE (LS8 @ Dec 10 2009, 10:03 AM) Does ... Dec 10 2009, 12:37 PM

dungeon QUOTE (KWS @ Dec 10 2009, 12:37 PM) Updat... Dec 20 2009, 08:34 PM

KWS QUOTE (dungeon @ Dec 20 2009, 09:34 PM) g... Dec 21 2009, 09:16 AM

KWS QUOTE (dungeon @ Dec 20 2009, 08:34 PM) g... May 29 2010, 05:46 PM
nickgosling Loving this script.
Autosleep works perfectly. Ch... Mar 3 2010, 12:45 PM
helob QUOTE (KWS @ Aug 29 2009, 04:14 PM) This ... Dec 22 2009, 01:43 PM
KWS QUOTE (helob @ Dec 22 2009, 02:43 PM) KWS... Dec 22 2009, 09:43 PM
helob QUOTE (KWS @ Dec 23 2009, 05:43 AM) Is sl... Dec 23 2009, 07:32 AM
KWS QUOTE (helob @ Dec 23 2009, 08:32 AM) I w... Dec 23 2009, 09:13 AM
Daniel Gustavsson QUOTE (KWS @ Aug 29 2009, 09:14 AM) This ... Dec 26 2009, 08:37 PM
KWS So if someone's here who could improve RIP-scr... Dec 27 2009, 12:31 AM
zim2dive I've just started having this problem after ad... Jan 7 2010, 12:53 PM
KWS QUOTE (zim2dive @ Jan 7 2010, 01:53 PM) I... Jan 7 2010, 01:25 PM
zim2dive QUOTE (KWS @ Jan 7 2010, 08:25 AM) I chan... Jan 7 2010, 01:43 PM
KWS A test in advance: Leave a disc in the drive, if a... Jan 7 2010, 03:22 PM
zim2dive I put in a CD, and with my SAMSUNG TS-H663B/UOAH S... Jan 7 2010, 11:00 PM
zoob For KWS:
DVD Burner May Be Cause of Insomnia
http:... Jan 8 2010, 03:57 AM
westwaerts THX KWS
for changing the script to get more apps ... Jan 22 2010, 08:02 PM
swavek QUOTE (KWS @ Aug 29 2009, 08:14 AM) ...
A... Jan 22 2010, 08:43 PM
Wikus Hi,
thank you for the great script, but I have a ... Feb 25 2010, 10:02 AM
KWS If you write in terminal
ps -axww
you get a list ... Feb 25 2010, 03:19 PM
DieBuche Hey KWS, do u know whether VLC/other video apps su... Feb 25 2010, 03:29 PM
KWS QUOTE (DieBuche @ Feb 25 2010, 04:29 PM) ... Feb 25 2010, 03:51 PM
oswaldini Doesn't work for me. My machine goes to sleep ... Mar 6 2010, 11:40 PM
KWS QUOTE (oswaldini @ Mar 7 2010, 12:40 AM) ... Mar 7 2010, 04:28 PM
oswaldini RIP3s work perfect with my TSSTcorp CD/DVDW SH-S18... Mar 9 2010, 08:24 AM
Sidewinder33 Hey I had a question about the script. Im not a pr... Mar 13 2010, 01:39 AM
KWS QUOTE (Sidewinder33 @ Mar 13 2010, 02:39 ... Mar 13 2010, 08:36 AM
Sidewinder33 Hmmm odd indeed, has anyone else had this same pr... Mar 14 2010, 05:31 AM
Phorte all you guys are lucky i can't even get manua... May 30 2010, 01:49 AM
d00d QUOTE (Phorte @ May 29 2010, 09:49 PM) al... Jun 1 2010, 10:14 PM ![]() |
|
Lo-Fi Version | Time is now: 9th September 2010 - 07:23 AM |