-
Notifications
You must be signed in to change notification settings - Fork 395
Expand file tree
/
Copy pathgenerate_message.sh
More file actions
executable file
·54 lines (38 loc) · 2.22 KB
/
generate_message.sh
File metadata and controls
executable file
·54 lines (38 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# Check if xclip or pbcopy is installed
if ! command -v pbcopy &> /dev/null && ! command -v xclip &> /dev/null
then
echo "Please install pbcopy (macOS) or xclip (Linux) to use this script."
exit 1
fi
# Function to copy to clipboard
copy_to_clipboard() {
if command -v pbcopy &> /dev/null; then
echo "$1" | pbcopy
elif command -v xclip &> /dev/null; then
echo "$1" | xclip -selection clipboard
fi
}
# Get the recipient's name and company as input
read -p "Enter the recipient's name: " recipient_name
read -p "Enter the recipient's company: " recipient_company
# Define the subject
subject="Seeking Your Input: User Interview on Supplier Discovery"
# Define the message body template
message_body="Hi $recipient_name,
I hope you're doing well. My name is Dylan, and I'm currently working on a new company focused on solving the challenges of supplier discovery for professionals in the semiconductor manufacturing industry.
I'm reaching out because I came across your profile and was impressed by your experience in sourcing. I'd love to hear about the specific challenges you face in supplier discovery and get your insights to help shape a solution that meets the needs of professionals like you.
If you're available, I'd really appreciate your time for a brief, 30-minute user interview. As a token of my appreciation, I'll send you a \$5 Starbucks gift card for your participation.
You can schedule a time that works best for you using my Calendly link: https://calendly.com/dylan-konfig/meet. Alternatively, if you prefer, you can share your availability and email, and I'll set up a calendar invite.
Thanks so much for considering my request. Your feedback will be invaluable in helping us create a better solution for the industry.
Best regards,"
# Copy the subject to the clipboard
copy_to_clipboard "$subject"
# Output the subject to the terminal
echo -e "\nSubject copied to clipboard:\n$subject"
# Wait for the user to press enter
read -p "Press Enter to copy the body of the message to the clipboard..."
# Copy the message body to the clipboard
copy_to_clipboard "$message_body"
# Output the message body to the terminal
echo -e "\nMessage body generated and copied to clipboard:\n$message_body"