Skip to content

Instantly share code, notes, and snippets.

@michaelbrawn
Created June 6, 2018 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelbrawn/a77f4e25e4ca903c9f22018d98d55883 to your computer and use it in GitHub Desktop.
Save michaelbrawn/a77f4e25e4ca903c9f22018d98d55883 to your computer and use it in GitHub Desktop.
Mohave Dynamic Background
-- Author: Michael Brawn (michaelbrawn.com)
on run
tell application "System Events"
set theName to name of current user
end tell
set pathName to "/Users/" & theName & "/Pictures/backgrounds/mohave/mojave_dynamic-" & hours of (current date) & ".jpeg"
tell application "Finder" to set desktop picture to POSIX file pathName
return
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment