Go Back   The macosxhints Forums > OS X Help Requests > AppleScript



Reply
 
Thread Tools Rate Thread Display Modes
Old 03-09-2013, 03:33 AM   #1
Sarina
Prospect
 
Join Date: Mar 2013
Posts: 11
Question How to make THAT script for Photo Booth?

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
Sarina is offline   Reply With Quote
Old 03-09-2013, 03:49 PM   #2
macosnoob
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).
Attached Thumbnails
Click image for larger version

Name:	aut.jpg
Views:	39
Size:	72.8 KB
ID:	4642  
macosnoob is offline   Reply With Quote
Old 03-09-2013, 06:55 PM   #3
chabig
Hall of Famer
 
Join Date: Jan 2002
Posts: 2,934
I found an app called CamLapse in the app store that says it does what you want. It's $5.
chabig is offline   Reply With Quote
Old 03-10-2013, 04:14 AM   #4
Sarina
Prospect
 
Join Date: Mar 2013
Posts: 11
Question RE Does it have to be Photo Boot......

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!
Sarina is offline   Reply With Quote
Old 03-10-2013, 04:21 AM   #5
Sarina
Prospect
 
Join Date: Mar 2013
Posts: 11
Question Correction macosnoob - your pic did open OK!

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???
Sarina is offline   Reply With Quote
Old 03-10-2013, 06:26 AM   #6
ricede
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 ?
ricede is offline   Reply With Quote
Old 03-11-2013, 12:25 AM   #7
Sarina
Prospect
 
Join Date: Mar 2013
Posts: 11
Question

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! ]
Sarina is offline   Reply With Quote
Old 03-11-2013, 01:45 AM   #8
ricede
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.
ricede is offline   Reply With Quote
Old 03-18-2013, 03:38 AM   #9
Sarina
Prospect
 
Join Date: Mar 2013
Posts: 11
Exclamation Special thanks to you macosnoob and you ricede!

Very many special thanks to you guys for helping me with my Automator
problem!

S.
Sarina is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump



All times are GMT -5. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.