Toy for Scripts menu
Toy for Scripts menu
- Subject: Toy for Scripts menu
- From: John W Baxter <email@hidden>
- Date: Sun, 25 Aug 2002 13:27:52 -0700
Blatantly stolen from a thread titled "Cool OS X 10.2 Feature" started by
Robo-X in the Mac OS X Troubleshooting forum at MacFixIt. Robo-X presented
just a shell command (exited with control C). I've wrapped it into the
following script which I've saved into the Scripts menu. Note that it uses
the Screen Effect (formerly Screen Saver) configuration you have set up in
System Preferences.
--John
-- The shell command is broken into chunks to allow it to travel
-- easily through the list and to be managed easily in a Script Editor
-- (or other script editor) window.
-- For the moment to undo the effect, in Terminal
-- ps axuw | grep [r]een
-- kill -TERM <the PID you see from the ps>
-- I need to work on an "off" switch.
--
-- Runs OK if saved and put into the Mac OS X 10.2 Script menu.
-- Uses a not-insignificant amount of CPU time
set cmd to "'/System/Library/Frameworks/ScreenSaver.framework/"
set cmd to cmd & "Resources/ScreenSaverEngine.app/Contents/MacOS/"
set cmd to cmd & "ScreenSaverEngine' -background"
set cmd to cmd & " &"
-- display dialog cmd
ignoring application responses
do shell script cmd
end ignoring
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.