Skip to content

Instantly share code, notes, and snippets.

@pajotarthur
pajotarthur / premier_post.md
Created November 30, 2016 12:38
C'est une note de blog pour discuter

Salut

-- 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"}