Jump to content

Take photo with your Mac's camera


Recommended Posts

I put this together as a learning exercise because I am just learning.

It uses an old terminal command named imagesnap http://www.manorts.com/alfred/imagesnap.zip

Docs are in the archive and if I can understand them, anyone can. There are quite a few options you can use.

My workflow is real basic. I have a keyword 'snap' followed by a space and argument that activates my script. e.g snap testpic.jpg

One of the command switches is real handy, imagesnap -t 30. It takes a photo every 30 seconds until you end the script. Good to see who is at your computer during your coffee break.

on alfred_script(q)
tell application "Terminal"
	--activate
		do script "imagesnap " & q
        delay 5
        quit
end tell
end alfred_script

Edited the script so terminal window does not open and to put a delay to let the script finish before quitting the Terminal

Edited by Colin
Link to comment

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
×
×
  • Create New...