New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Pausing/Resuming Terminal Script

Post Reply New Thread Subscribe

Thread Tools

Member Since: Aug 23, 2013
Posts: 1
kevinaboyette is on a distinguished road

kevinaboyette is offline
I found a script online to take screen shots at timed intervals (I'm using it to make timelapse videos). I do not know anything about this stuff, so I'm hoping someone here can help.

Basically, I want to be able to pause and resume this script somehow. Instead of stopping it when needed, checking the screen shot folder for the last numbered file, back go Terminal, UP arrow to see last command, CTRL + A to go to the beginning, changing i=1; to last file number, Enter.

That's quite inconvenient as I have to do it every time I check instant messages and what not.

Here's the script:

while [ 1 ];do 
screencapture -t png -x ~/Pictures/screenshots/$(printf "%05d" $i).png; 
let i++;
sleep 2; 
QUOTE Thanks

Post Reply New Thread Subscribe

« mac hard drive number "2" | disc repair prior to upgrading 10.6.8 to Mountain Lion? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Terminal command script weasel360 OS X - Apps and Games 5 08-13-2012 04:39 PM
Finder won't start laurag OS X - Operating System 5 04-13-2012 05:46 PM
Mapping AFP with Applescript for student macs DrunkMunki OS X - Operating System 3 11-04-2011 02:23 AM
Terminal -- shell script -- script will only read two lines of a file Straitsfan OS X - Apps and Games 0 01-30-2011 09:04 PM
Terminal Script... TheInvsbleMan OS X - Apps and Games 2 05-27-2008 11:12 PM

All times are GMT -4. The time now is 12:47 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?