Need help running a shell script using Applescript
I have a shell script that will zip file within jpg sub-subfolders. The shell script works when run from the terminal but I need to be able to pass this off to someone else. I'd like to have AppleScript prompt for the input folder (main folder containing all the subfolders) and then run the shell against that main folder.
Here's the Shell Script code. I don't know how to use it in an AppleScript.
#!/bin/bash
for senior in *; do
if [ -d "$senior" -a -d "$senior"/" jpg" ]; then
echo "Zipping $senior"
zip -q "$senior"/" jpg"/"$senior" "$senior"/" jpg"/*.jpg
fi
done