Advertisement
Guest User

Untitled

a guest
Aug 7th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set i to 1
  2. set pathName to "PATH TO PARENT FOLDER"
  3. set childfolder to "city/"
  4. set frames to 99
  5. repeat
  6.     do shell script ("cp " & pathName & childfolder & i & ".gif " & pathName & "/city.png")
  7.     set i to (i + 1)
  8.     tell application "GeekTool Helper"
  9.         refresh geeklet "city"
  10.     end tell
  11.     if i is equal to frames then
  12.         do shell script ("cp " & pathName & childfolder & 1 & ".gif " & pathName & "/city.png")
  13.         set i to 1
  14.     end if
  15.     delay 1.0E-3
  16. end repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement