Last active
January 1, 2016 09:19
-
-
Save pajotarthur/8123987 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- set image to POSIX file "/Users/arthur/Pictures/Wallpaper/Afternoon.jpg" | |
on idle | |
set t1 to (time of (current date)) | |
if (t1 > 0 and t1 < 10800) then | |
set image to POSIX file {"/Users/Pictures/Wallpaper/Night.jpg"} | |
else if (t1 > 10800 and t1 < 21600) then | |
set image to POSIX file {"/Users/Pictures/Wallpaper/LateNight.jpg"} | |
else if (t1 > 21600 and t1 < 28800) then | |
set image to POSIX file {"/Users/Pictures/Wallpaper/EarlyMorn.jpg"} | |
else if (t1 > 28800 and t1 < 36000) then | |
set image to POSIX file {"/Users/Pictures/Wallpaper/Morn.jpg"} | |
else if (t1 > 36000 and t1 < 43200) then | |
set image to POSIX file {"/Users/Pictures/Wallpaper/LateMorn.jpg"} | |
else if (t1 > 43200 and t1 < 57600) then | |
set image to POSIX file {"/Users/Pictures/Wallpaper/Afternoon.jpg"} | |
else if (t1 > 57600 and t1 < 66600) then | |
set image to POSIX file {"/Users/Pictures/Wallpaper/LateAfter.jpg"} | |
else if (t1 > 66600 and t1 < 79200) then | |
set image to POSIX file {"/Users/Pictures/Wallpaper/Even.jpg"} | |
else if (t1 > 79200 and t1 < 86400) then | |
set image to POSIX file {"/Users/Pictures/Wallpaper/LateEven.jpg"} | |
end if | |
tell application "Finder" to set desktop picture to image | |
return 1000 | |
end idle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment