1. on run
  2.    
  3.     set streamURL to ""
  4.     try
  5.         set streamURL to text returned of (display dialog "Enter stream url:" default answer "")
  6.         do shell script "/Applications/VLC.app/Contents/MacOS/VLC -vvv " & streamURL & " :http-user-agent=\"AppleCoreMedia/1.0.0.8C148 (iPad; U; CPU OS 4_2_1 like Mac OS X; en_us)\""
  7.     end try
  8.    
  9. end run