Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Automate Screenshots
- ## Option 1: Screenshots of a particular window
- ## (download and use) GetWindowID, example:
- while [ 1 ]; do
- echo -en "\007"
- date=$(date "+%Y%m%dT%H%M%S")
- screencapture -l$(GetWindowID Tableau 'Tableau - Volvo KPI Dashboard') ~/Screenshots/"screen_${date}.png"
- sleep 15
- done
- ## Option 2: Screenshots of an area of the screen
- while [ 1 ]; do
- echo -en "\007"
- date=$(date "+%Y%m%dT%H%M%S")
- screencapture -R20,20,640,380 ~/Screenshots/"screen_${date}.png"
- sleep 15
- done
- ### How to find out what rectangle you need to use? Skitch App or trial and error
Add Comment
Please, Sign In to add comment