Skip to content

Instantly share code, notes, and snippets.

@markolson
Created December 10, 2014 04:38
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 markolson/7838583de86d558f2224 to your computer and use it in GitHub Desktop.
Save markolson/7838583de86d558f2224 to your computer and use it in GitHub Desktop.
-- convert -coalesce image.gif ~/Documents/cin/img%02d.png
set i to 0
set wallpaper_folder to (path to home folder as string) & "Documents:cin" as alias
tell application "Finder"
set fileList to (every file of folder wallpaper_folder) as alias list
end tell
tell application "System Events"
repeat
set i to i + 1
set current_index to i mod (count fileList) + 1
set thisPOSIXPath to (the POSIX path of (item current_index of fileList))
tell current desktop
set picture to thisPOSIXPath
delay 0.07
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment