cat <<‘EOF’ > “$HOME/Desktop/imessage_blast.sh”
#!/bin/bash
csv=”$HOME/Desktop/contacts.csv”
default_message=”Hi, this is Ray! Just reaching out—feel free to reply here or text me back directly. Hope all is well.”
# Check for CSV existence
if [ ! -f “$csv” ]; then
echo “contacts.csv not found on Desktop. Please run the setup script first.” exit 1
fi
# Loop through the CSV, skipping header
while IFS=, read -r number; do
[[ -z “$number” ]] && continue
number=$(echo “$number” | xargs)
echo “Sending to $number…”
osascript <