cat <<‘EOF’ > “$HOME/Desktop/imessage_blast.sh”
#!/bin/bash
csv=”$HOME/Desktop/contacts.csv”
logfile=”$HOME/Desktop/imessage_blast_log.txt”
default_message=”Hi, this is Ray! Just reaching out—feel free to reply here or text me back directly. Hope all is well.”
# Optional webhook URL (leave blank if not used)
webhook_url=””
# Initialize log
echo “Message blast started at $(date)” > “$logfile”
# Check for CSV existence
if [ ! -f “$csv” ]; then
echo “❌ contacts.csv not found on Desktop. Exiting.” | tee -a “$logfile” exit 1
fi
# Loop through each line after the header
tail -n +2 “$csv” | while IFS=, read -r number; do
[[ -z “$number” ]] && continue
number=$(echo “$number” | xargs)
echo “📤 Sending to $number…” | tee -a “$logfile”
osascript </dev/null fi
sleep 1
done
# Wrap-up summary
echo “✅ Message blast completed at $(date)” | tee -a “$logfile” EOF
chmod +x “$HOME/Desktop/imessage_blast.sh”
echo “📝 Script saved to Desktop as ‘imessage_blast.sh’. Ready to roll!” Sent from my iPhone