Guest User

Untitled

a guest
Jan 24th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ## Automate Screenshots
  2.  
  3. ## Option 1: Screenshots of a particular window
  4.  
  5. ## (download and use) GetWindowID, example:
  6.  
  7. while [ 1 ]; do
  8. echo -en "\007"
  9. date=$(date "+%Y%m%dT%H%M%S")
  10. screencapture -l$(GetWindowID Tableau 'Tableau - Volvo KPI Dashboard') ~/Screenshots/"screen_${date}.png"
  11. sleep 15
  12. done
  13.  
  14.  
  15. ## Option 2: Screenshots of an area of the screen
  16.  
  17. while [ 1 ]; do
  18. echo -en "\007"
  19. date=$(date "+%Y%m%dT%H%M%S")
  20. screencapture -R20,20,640,380 ~/Screenshots/"screen_${date}.png"
  21. sleep 15
  22. done
  23.  
  24. ### How to find out what rectangle you need to use? Skitch App or trial and error
Add Comment
Please, Sign In to add comment