For those that are interested, it's pretty easy to set this up. It's easiest on a Mac because cron runs natively. All you have to do is issue the command "crontab -e" and edit the file that opens. I run the following script in mine:
#!/bin/bashOn a PC it's not as easy. I downloaded and installed the MiniCap application. Then I made a script in cygwin, again using bash. Then I made a batch file to run the bash script. Then I made a shortcut to the batch file so I could set it to run minimized (so it wouldn't pop up the svchost.exe window). Then I used Scheduled Tasks to make the script run every 15 minutes. Here is the bash script:
/usr/sbin/screencapture -x $(printf "/Users/mlantin/Pictures/screenshots/macscreen-%04d.png" $((`ls ~/Pictures/screenshots| grep -c ''`+1)))
#!/bin/bash
/cygdrive/d/Program\ Files/MiniCap/MiniCap.exe -capturedesktop -exit -save "$(cygpath -w $(printf "/home/mlantin/screenshots/desktopscreen-%04d.tiff" $((`ls /home/mlantin/screenshots | grep -c ""` + 1))))"
Here is the batch file (called takeashotdos.bat):
D:\cygwin\bin\bash.exe -l /home/mlantin/takeashot
exit
D:\cygwin\home\mlantin\takeashotdosshort.lnk
A song for this post.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.