Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


The first day or two it just took the photo in the background without me knowing about it. But too many of the photos were really bad (deleted most of them). I was moving or my head was cut off or out of frame. I was willing to trade the 'security' of hidden photo gathering and instead just had it launch PhotoBooth and immediately take a picture. That gave me three seconds to compose myself and if I couldn't do it in time I could just click the capture button and take another one. Occasionally I would get annoyed at it, but it was over quick enough.


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


You could just add a growl notification, might get annoying over time though




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: