(*
Sample droplet interface for shell scripts.

I recomend saving as an application bundle so you can embed shell scripts if you need to.
You can view the source later by dragging it on to the the script editor.
--CBT
*)

on open these_items
	repeat with i from 1 to the count of these_items
		set path_str to POSIX path of item i of these_items
		try
			-- Using echo as an example. It could also be the path to a shell script.
			set rslt to do shell script "echo " & path_str
			display dialog "Result: " & rslt buttons {"Ok"} giving up after 10 default button 1
			
		on error
			display dialog "Problem with " & path_str buttons {"Ok"} giving up after 10 default button 1
		end try
	end repeat
end open

on run
	display dialog "Drop a stuff on this to do stuff to it." buttons {"Ok"} giving up after 10 default button 1
end run

open shell-droplet in the applescript editor