Skip to content

Instantly share code, notes, and snippets.

@erikccoder
Created October 17, 2014 09:32
Show Gist options
  • Save erikccoder/d88fb5e249ee22a9b1bc to your computer and use it in GitHub Desktop.
Save erikccoder/d88fb5e249ee22a9b1bc to your computer and use it in GitHub Desktop.
property ffplay : "/Applications/ffmpeg/ffplay"
on main(input)
do shell script ffplay & space & quoted form of input
end main
on open argv
repeat with aFile in argv
main(POSIX path of aFile)
end repeat
end open
on run
display dialog "url" default answer ""
set noob_answer to text returned of result
main(noob_answer)
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment