• 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: Preventing narcolepsy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing narcolepsy


  • Subject: Re: Preventing narcolepsy
  • From: Mikael Jansson <email@hidden>
  • Date: Tue, 13 Aug 2002 23:30:56 +0200

Landis:
If I have my computer set to go to sleep after 30 minutes of inactivity, how do I avoid it going to sleep while a script runs?

How about

Store currrent Energy Saver settings.
Set Energy Saver settings to not go to sleep.
[long script here]
Set Energy Settings to stored value.

Now I am a complete newbie at AppleScript, so I almost don't know the language (Nutshell book due to arrive within a week). If you are able to translate the above pseudocode I would be happy to see the finished result.

On a side note, if anyone knows how to open System Preferences and change the settings in OS X, please let me know. I am trying to write a script that boots into OS 9 from OS X, but keep getting stuck. In OS 9 I wrote

tell application "Finder"
activate
select file "Startupdisk"
open selection
end tell
tell application "Startupdisk"
activate
set startup system folder alias to alias "Yog-
Sothoth:System:Library:CoreServices:BootX"
quit
end tell
tell application "Finder"
activate
restart
end tell

but I can't seem to create the corresponding script code in OS X.

Regards,

Mikael Jansson
Lund, Sweden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • OS X Screen Saver vs. Timed Scripts
      • From: Gary Beberman <email@hidden>
References: 
 >Preventing narcolepsy (From: Landis <email@hidden>)

  • Prev by Date: RE: Manipulating multiple files in arbitrary applications
  • Next by Date: Re: Timing problem.
  • Previous by thread: Preventing narcolepsy
  • Next by thread: OS X Screen Saver vs. Timed Scripts
  • Index(es):
    • Date
    • Thread