Jump to content

Hi,

I need the help of more skilled people than me,  I’m going to be siting a 10 hour photography exam in abut a month. Ill be doing it digitally, to prove that it is achy me I need screen shot of the process that I am using to create my work. I was wondering if it was possible to automate this using terminal. It would ideally include 

  • The time the the screenshot was taken (preferably the name of the screenshot)
  • A destination folder that can be changed 
  • And an easy way to change the frequency of the screenshots 

I would be very appreciative if anyone could help me with this. I’m running OS X 10.11.3

Link to comment
https://linustechtips.com/topic/570667-help-with-terminal/
Share on other sites

Link to post
Share on other sites

I must be reading this wrong or something.  A 10HOUR EXAM!. What about toileting, eating, eye strain etc?  Ten hours staring at a computer screen doesn't bear thinking about

 Two motoes to live by   "Sometimes there are no shortcuts"

                                           "This too shall pass"

Link to comment
https://linustechtips.com/topic/570667-help-with-terminal/#findComment-7485345
Share on other sites

Link to post
Share on other sites

CPU: i5 4670k @ 3.4GHz + Corsair H100i      GPU: Gigabyte GTX 680 SOC (+215 Core|+162 Mem)     SSD: Kingston V300 240GB (OS)      Headset: Logitech G930 

Case: Cosair Vengance C70 (white)                RAM: 16GB TeamGroup Elite Black DDR3 1600MHz       HDD: 1TB WD Blue                              Mouse: Logitech G602

OS: Windows 7 Home Premium                       PSUXFX Core Edition 750w                                                Motherboard: MSI Z97-G45               Keyboard: Logitech G510

Link to comment
https://linustechtips.com/topic/570667-help-with-terminal/#findComment-7485381
Share on other sites

Link to post
Share on other sites

6 hours ago, soup said:

I must be reading this wrong or something.  A 10HOUR EXAM!. What about toileting, eating, eye strain etc?  Ten hours staring at a computer screen doesn't bear thinking about

It split into two days and then again a couple more times in each day. The art exam is 12 hours so...

Link to comment
https://linustechtips.com/topic/570667-help-with-terminal/#findComment-7486648
Share on other sites

Link to post
Share on other sites

#!/bin/bash
#quick and dirty screenshooter
timeofSC="$(date +%d-%m-%y_%T)"

echo -e "Frequency of the screenshot in seconds(only numbers): "
read frequenctSC

echo -e "Directory to save them: "
read dir

while [ 1 ]
	do 
	screencapture -t jpg -xCr $dir/$timeofSC.jpg 
	sleep $frequenctSC
done

Made a bash script for you, to run it do:

1. save it as an .sh file "AwesomeScript.sh"

2. in terminal type "chmod +x AwesomeScript.sh" this allows it to execute the code

3. then do "./AwesomeScript.sh" answer it's questions.

4. ???

5. Profit.

 

NOTE: I am not on a mac so please verify if 'screencapture' works.

CPU: Intel i5-3470

GPU: MSI GTX 780

OS: GNU/Linux.

Link to comment
https://linustechtips.com/topic/570667-help-with-terminal/#findComment-7488395
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×