--Requires ImageMagick -- Set up the variables set screenshotFolder to "/Users/YR_NAME/Desktop/Screenshots" -- Change this to whatever folder you'd like to save the screenshots in set screenshotInterval to 600 -- Change this to the number of seconds between each screenshot set screenshotCount to 30 -- Change this to the number of screenshots you'd like to take -- Take the screenshots delay screenshotInterval repeat with i from 1 to screenshotCount set screenshotName to "screenshot" & i & ".png" set screenshotPath to screenshotFolder & "/" & screenshotName -- corrected file path do shell script "screencapture -x " & quoted form of screenshotPath delay screenshotInterval end repeat -- Combine the screenshots into a gif set gifName to "screenshot.gif" set gifPath to screenshotFolder & gifName do shell script "cd " & quoted form of screenshotFolder & "; /opt/homebrew/bin/convert -delay 100 -loop 0 screenshot*.png " & quoted form of gifName