My goal is to automate the process of updating a user's hosts file. (/etc/hosts/)
I have a bash script that works fine if I run it from my home directory.
User opens Alfred and types in the keyword "hostsup" (No arguments required)
Alfred opens a Terminal window and runs a script that has been added to the Workflow folder
The script displays some informative text for the user
Then the scripts ask the user if they would like to continue
On 'y', the terminal prompts the user for their password (Because the command uses sudo)
The script outputs a completion message and instructs the user to