X

How to Set Timer to Take Screenshot on Mac Using Terminal

If you want to take screenshots of any movie or application with a specific time interval on Mac OS X then manually it is a little bit difficult task to manage. So, here we are writing a simple method which let you allow to take unlimited screenshots automatically and you may also set time interval between the screenshots according to your requirement.

See also:
Set a Folder to Save Screen Shots on Mac
Take Screen Shots on Mac with Keyboard Short Keys
Take ScreenShot Via Terminal On Mac

Set Timer To Take Screenshot On Mac Via Terminal

  1. Go to Finder
  2. Navigate to Applications > Utilities and launch Terminal
  3. Type the following command in Terminal and hit Enter
    while [ 1 ];do vardate=$(date +%d\-%m\-%Y\_%H.%M.%S); screencapture -t jpg -x ~/Desktop/TrickyWays/$vardate.jpg; sleep 10; donewhere:
    vardate = used to give the names to screenshots which will be the system date & time.
    jpg = the format of screenshots.
    Desktop/TrickyWays = folder to save the screenshot.
    sleep = time interval between screenshots.
    done = ends the while loop.

    Press Ctrl+C to stop this loop

    Or use the following command
    i=1;while [ 1 ];do screencapture -t jpg -x ~/Desktop/TrickyWays/$i.jpg; let i++;sleep 6; done
    where:
    i = variable which is used to give the names to screenshots
    jpg = the format of screenshots
    Desktop/TrickyWays is the folder to save the screenshot
    sleep = time interval between screenshots
    done = ends the while loop

    Press Ctrl+C to stop this loop
vardate
Categories: Mac OS X
shamid:

View Comments (12)

This website uses cookies.

Read More