Re: Preventing narcolepsy
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.