Live data from Hacker News

Taking pictures with your MacBook every time the lid opens

benjamin-meyer-home.blogspot.com

11–20 of 36 posts

Re: Taking pictures with your MacBook every time the lid opens

#11
post #2

Pretty neat hack! Were you conscious of the script each time you opened the lid? I imagine I would forget about it after the first week.

If you read the linked article, aside from the very beginning, he uses Sleepwatcher [1] to trigger an Automator script that launches Photo Booth and does the 3...2...1 countdown.

[1] http://www.bernhard-baehr.de/

[2] http://www.apple.com/macosx/what-is-macosx/apps-and-utilitie...

[3] http://www.apple.com/macosx/what-is-macosx/apps-and-utilitie...

Re: Taking pictures with your MacBook every time the lid opens

#12
post #7

Pretty neat. Is there any way to do this on Windows? I'd like to try a similar experiment with my Thinkpad

My IdeaPad shipped with Lenovo Veriface which authenticates you based on your picture. It also stores a copy for 24 hours I believe, which you could automatically move before they get removed.

Re: Taking pictures with your MacBook every time the lid opens

#13
post #11
post #2

Pretty neat hack! Were you conscious of the script each time you opened the lid? I imagine I would forget about it after the first week.

If you read the linked article, aside from the very beginning, he uses Sleepwatcher [1] to trigger an Automator script that launches Photo Booth and does the 3...2...1 countdown. [1] http://www.bernhard-baehr.de/ [2] http://www.apple.com/macosx/what-is-macosx/apps-and-utilitie... [3] http://www.apple.com/macosx/what-is-macosx/apps-and-utilitie...

Sorry, I should have been more clear. I was wondering if he remembered that the script would launch PhotoBooth before he opened the lid each time. I expect he'd have just grabbed his MacBook and opened the lid and then remembered that it would take a picture.

Re: Taking pictures with your MacBook every time the lid opens

#14
post #2

Pretty neat hack! Were you conscious of the script each time you opened the lid? I imagine I would forget about it after the first week.

He mentions an automator workflow and sleep watcher, doesnt really give any explanation on how he really did it.

I tried playing with recording and automater, but it wasnt happen about photo booth.

Re: Taking pictures with your MacBook every time the lid opens

#15
post #13
post #11

Earlier quoted context omitted.

If you read the linked article, aside from the very beginning, he uses Sleepwatcher [1] to trigger an Automator script that launches Photo Booth and does the 3...2...1 countdown. [1] http://www.bernhard-baehr.de/ [2] http://www.apple.com/macosx/what-is-macosx/apps-and-utilitie... [3] http://www.apple.com/macosx/what-is-macosx/apps-and-utilitie...

Sorry, I should have been more clear. I was wondering if he remembered that the script would launch PhotoBooth before he opened the lid each time. I expect he'd have just grabbed his MacBook and opened the lid and then remembered that it would take a picture.

As it happens all of the time I really don't forget. And if it takes a really horrible photo I can always just click the little X and delete it so no harm.

Re: Taking pictures with your MacBook every time the lid opens

#16
I used to do the same thing, but a little differently. I used SleepWatcher as well, ( http://www.bernhard-baehr.de/ ), but set it up to run the following script, which uses isightcapture ( http://www.intergalactic.de/pages/iSight.html ) to do it all in the background:

   NOWDATE=`/bin/date +%Y.%m.%d-%H.%M.%S`
   /usr/local/sbin/isightcapture ~/login_images/$NOWDATE.png
   /usr/bin/scp -o ConnectTimeout=5 ~/login_images/$NOWDATE.png me@myserver.com:~/login_images
Where I have an SSH fingerprint for me@myserver.com installed. This let me back up the images to a server, for convenience and security.

Edited for code formatting.

Re: Taking pictures with your MacBook every time the lid opens

#17

I used to do the same thing, but a little differently. I used SleepWatcher as well, ( http://www.bernhard-baehr.de/ ), but set it up to run the following script, which uses isightcapture ( http://www.intergalactic.de/pages/iSight.html ) to do it all in the background: NOWDATE=`/bin/date +%Y.%m.%d-%H.%M.%S` /usr/local/sbin/isightcapture ~/login_images/$NOWDATE.png /usr/bin/scp -o ConnectTimeout=5 ~/login_images/$NOWDA…

That is pretty much the solution I had for the first week before I switch to photo booth whos main advantages were: - I could compose a photo with objects and or just remember to be in frame and smile - I could easily delete a bad photo with just a click. - I could take several photos right there and then if I wanted.

Re: Taking pictures with your MacBook every time the lid opens

#18
post #2

Pretty neat hack! Were you conscious of the script each time you opened the lid? I imagine I would forget about it after the first week.

He mentions an automator workflow and sleep watcher, doesnt really give any explanation on how he really did it. I tried playing with recording and automater, but it wasnt happen about photo booth.

Okay I got taking a photo with automator to work. I launch photo booth then used a mouse click macro to trigger a photo capture. Then I quit it.

jones.freeshell.org/TakePicture.zip

Post reply on HN