|
|
#1 |
|
Prospect
Join Date: Mar 2013
Posts: 11
|
How to make a script which will make Photo Booth to take a shot with the MacBookPro in-build camera every 10 seconds, save it and do it continuously for 2 hours?
[not a movie clip, just a shot every 10 seconds!] I’m not skilled in scripting but maybe such a script can be created? Could someone who is good in scripting show me the steps to make such script? I have OSX 10.6.8. Thanks in advance! Sarina |
|
|
|
|
|
#2 |
|
MVP
Join Date: Jan 2007
Posts: 1,751
|
Does it have to be Photo Booth, or would you be content with the camera firing every ten seconds and depositing the snaps to a folder? If the latter, an Automator workflow will do (see below).
When you run the workflow, it will start snapping photos, roughly every 10 seconds, for 120 minutes. The output appears as Video Snapshot.tiff, Video Snapshot1.tiff, Video Snapshot2.tiff, etc., on your Desktop, though you'll want to choose another location for the files (in step 1) so that you don't end up 720 images on the Desktop. You may also need to adjust the pause (in step 2) up or down to get the 10-second interval between shots. If you need precisely timed shots and you're willing to learn how to use Terminal, have a look at imagesnap, http://iharder.sourceforge.net/curre...osx/imagesnap/. Once imagesnap is installed, the Terminal command imagesnap -t 10 is all that you would need for accurately timed shots to be taken silently in the background (no countdown timer and no interface). |
|
|
|
|
|
#4 |
|
Prospect
Join Date: Mar 2013
Posts: 11
|
No, it doesn't have to be Photo Boot , I need just a script that can activate
the camera and make it snap shots. A script with Automatorr sounds good. The attached pic could be of help but is too small [128 × 53 pixels] and unreadable -Could you send me info about how to do the script with Automator? The option with ,imagesnap doesn't work for me - either is faulty or my knowledge is not up to the working with command line.... So I'd rather go for using a script, be it in Automator or Apple script. PS - Not interesting in buying ready made program - I want to learn something from this experience. Thanks for any further help! |
|
|
|
|
|
#5 |
|
Prospect
Join Date: Mar 2013
Posts: 11
|
Sorry macosnoob, I was wrong re; size of the pic - I opened it properly and it's OK :-)
Still can't make this imagesnap/command line deal work...and looking for a script. Any help??? |
|
|
|
|
|
#6 |
|
All Star
Join Date: Jul 2008
Location: India
Posts: 506
|
I just tried the Automator workflow suggested by macosnoob and that seems to work well - what problem did you have setting it up ?
|
|
|
|
|
|
#7 |
|
Prospect
Join Date: Mar 2013
Posts: 11
|
I am learning Automator, seems great,
BUT being novice I have difficulty saving the workflow. For example, after I did the photoshots as programed I tried to save the set and gave it a name "SCREEN SHOT AUTO" so I can use it again and again. However it saves as plugin which I can't find anywhere in my Mac! In Automator help didn't find much to help -Save As option still creates that plugin.... I believe it is possible to save "SCREEN SHOT AUTO" as a program (not as plugin) which I can open and use when needed. How exactly to do this? I think I make some small beginners error... Any guidance, please? [By the way thanks guys for educating me about that great Automator program! ] |
|
|
|
|
|
#8 |
|
All Star
Join Date: Jul 2008
Location: India
Posts: 506
|
When you have created the set - go to File - Save As and a window will open. Give a title like "SCREEN SHOT AUTO" - make sure the File Format ( at the bottom of Save window ) is set to Application & save to the place of your choice.
When you wish to use it - double click on it. The sequence will start. The pics will be in the folder you defined, when you set up the Take Video Snapshot section of the workflow. |
|
|
|
|
|
#9 |
|
Prospect
Join Date: Mar 2013
Posts: 11
|
Very many special thanks to you guys for helping me with my Automator
problem! S.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|