Skip to content

Instantly share code, notes, and snippets.

@rudyjahchan
Created August 14, 2012 16:09
Show Gist options
  • Save rudyjahchan/3350546 to your computer and use it in GitHub Desktop.
Save rudyjahchan/3350546 to your computer and use it in GitHub Desktop.
Run a screensaver as a desktop background
tell application "System Events"
if process "ScreenSaverEngine" exists then
tell application "ScreenSaverEngine" to quit
else
do shell script "/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background > /dev/null 2>&1 &"
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment