I am trying to write a script that will take a snapshot, then exit Debut and exit the script.
In future I want to schedule the script to run every 10 minutes or so during daylight hours, but that can wait for now.
The script is starting from the command line and taking the snapshot just fine but then it does not exit Debut or the script.
#!/bin/bash
echo “About to launch Debut and take a snapshot!”
/Applications/Debut.app/Contents/MacOS/Debut -snapshot -source "webcam" -ms 1000
/Applications/Debut.app/Contents/MacOS/Debut -exit
{
sleep 1m
kill $$
} &
while true
do
date
sleep 1
done