• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Inhibiting Sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Inhibiting Sleep
      • From: Luther Fuller <email@hidden>
References: 
 >Inhibiting Sleep (From: Luther Fuller <email@hidden>)
 >Re: Inhibiting Sleep (From: Lists <email@hidden>)
 >Re: Inhibiting Sleep (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Inhibiting Sleep
  • Next by Date: Re: The latest AS date and AS Editor bugs
  • Previous by thread: Re: Inhibiting Sleep
  • Next by thread: Re: Inhibiting Sleep
  • Index(es):
    • Date
    • Thread