set title to text returned of (display dialog "Episode Title?" default answer "Episodentitel") as string
set summary to text returned of (display dialog "Description?" default answer "Interessante Beschreibung") as string
tell application "Finder"
set theFile to (get selection) as alias
set theFile to (POSIX path of theFile) as string
end tell
set theLameCommand to ("/bin/bash /path/to/encode-podcast.sh -t \\"" & title & "\\" -s \\"" & summary & "\\" \\"" & theFile & "\\"")
tell application "Terminal"
activate
delay 1
tell application "System Events"
keystroke "n" using {command down}
keystroke theLameCommand
keystroke (key code 36) - Return Key
end tell
end tell