Automator Screen Capture terminal Help

Discussion in 'macOS' started by Flyers12, Feb 25, 2017.

  1. Flyers12 macrumors newbie

    Oct 12, 2011
    I am trying to create an automator apple script for terminal that will let me run this script,
    tell application "Terminal"


    do script with command "screencapture -W ~/Desktop/Review/pic.png"

    end tell

    The issue I am having is that it keeps replacing the same screenshot with a new screenshot rather than creating pic1, pic2 etc. I would love to be able to make use of that script and be able to take multiple screenshots in that folder. Any help would be greatly appreciated.
  2. casperes1996 macrumors 68040


    Jan 26, 2014
    Horsens, Denmark
    Can't you somehow set up the filename is a variable (or string + variable), and then every time you take a capture, you compare the variable to the existing files, and if it exists, add 1 to the variable and compare again?

Share This Page