need some Applescripting help badly!!!

Discussion in 'Mac Programming' started by retselseer, Nov 26, 2013.

  1. retselseer macrumors newbie

    Dec 14, 2011
    I have been trying hard for a while to figure out how to create an Applescript application which I could use to successfully stream YouTube urls to mplayer. I have an executable bash script that can do it just fine. It contains just one line -
    mplayer -loop 0 -really-quiet -geometry 1000x1000 -ontop -cache 8192 $(youtube-dl -g "$1")
    I named it yt and I have it placed in the /opt/local/bin folder. To use it, I just copy a YouTube video url(e.g. and then open up a terminal window and type, "yt" The video then plays in mplayer just fine. The reason I want an Applescript to do this is because I want to use it in conjunction with this Firefox addon I have called 'Open with...' Can anyone please help me with this endeavor of mine? Thanks.
  2. kryten2 macrumors 6502a

    Mar 17, 2012

    Couple of ways of doing this. The best would be to read through this old thread Simple scripts to stream videos to VLC and CorePlayer. If you want to jump right in, the information you need is at post #62 here.
  3. retselseer thread starter macrumors newbie

    Dec 14, 2011
    I already looked through that thread and that one certain post in particular. According to post #63, I need to have xclip installed. From my research, I don't think xclip is available for Mac OS X at all. I tried installing it via MacPorts but to no avail. Just what could I use as an alternative?
  4. retselseer thread starter macrumors newbie

    Dec 14, 2011

Share This Page