document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. set title to text returned of (display dialog "Episode Title?" default answer "Episodentitel") as string
  2. set summary to text returned of (display dialog "Description?" default answer "Interessante Beschreibung") as string
  3.  
  4. tell application "Finder"
  5.     set theFile to (get selection) as alias
  6.     set theFile to (POSIX path of theFile) as string
  7. end tell
  8.  
  9. set theLameCommand to ("/bin/bash /path/to/encode-podcast.sh -t \\"" & title & "\\" -s \\"" & summary & "\\" \\"" & theFile & "\\"")
  10.  
  11. tell application "Terminal"
  12.     activate
  13.     delay 1
  14.     tell application "System Events"
  15.         keystroke "n" using {command down}
  16.         keystroke theLameCommand
  17.         keystroke (key code 36) - Return Key
  18.     end tell
  19. end tell
');