On Jun 11, 2013, at 3:06 PM, Lists wrote:
On Jun 11, 2013, at 12:09 PM, Luther Fuller <
email@hidden> wrote:
Does anyone know of a simple command that will temporarily inhibit sleep for a short time?
(I would not like to change any defaults.)
In Terminal you can use:
pmset noidle
Unsure of how you would use it in a "do shell script" though.
There's nothing to do but to test. I added this to my script
try
do shell script "pmset noidle" --****************
on error errtext number errNr
"Error = " & errNr & return & errtext
display dialog the result
end try
display dialog "Begin time out ..."
The line halts the script. I can see in Activity Monitor that 'pmset' is running.
I wait awhile, then ...
When I quit 'pmset' via Activity Monitor,
I get the error message dialog,
then I get the "Begin time out
" dialog
Either this will not work or more is needed in the do shell script line.