Re: Inhibiting Sleep
Re: Inhibiting Sleep
- Subject: Re: Inhibiting Sleep
- From: Luther Fuller <email@hidden>
- Date: Tue, 11 Jun 2013 16:21:45 -0500
On Jun 11, 2013, at 4:05 PM, Paul Scott wrote: Apparently, you'll have to kill it, here you go:
try do shell script "pmset noidle >/dev/null 2>&1 & echo $!" --**************** set pid to the result on error errtext number errNr "Error = " & errNr & return & errtext display dialog the result end try display dialog "Begin time out ..." do shell script "kill TERM " & pid
Thanks. I tried this and it seems to work. I will have to wait until tomorrow to experiment with my Energy Saver sleep settings. Will let you know what happens.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden