Automator Screen Capture terminal Help

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

  1. Flyers12 macrumors newbie

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

    activate

    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 65816

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #2
    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