I have some shell (Bash) scripts that process some video files in a directory. Instead of everytime launching a (Open)Terminal window, then typing the script name, I'd prefer to install an icon in the Finder's explorer toolbar so that a simple click on it does the job (like OpenTerminal does, if you know that tool). The result I imagine is this one :
click on the icon
a terminal window appears which automatically does a kind of
cd /the/path/where/I/was/in/the/finder/window; run_my_script.sh
Any idea how to do that ? (it's feasible since OpenTerminal does it)
Save something like this as an application in AppleScript Editor: