Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Flyers12

macrumors member
Original poster
Oct 12, 2011
31
7
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.
 
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.