Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2002
    Location
    NY, NY
    Posts
    3,974

    Itunes "Now Playing" Plugin

    I need a "now playing" type plugin for itunes.
    Similair to: http://brandon.fuller.name/archives/hacks/nowplaying/
    Except I don't need all those options
    I just need the option they call "pinging". Basically it send an http request to the url you specify with the song info as arguments.
    Basically site.com/file.ext?song=xx&album=yy etc..

    The program above costs $10, and it is probably well worth it, but I dont need all those options.

    Anybody know of one that does exactly what I am asking for?

    Thanks.

  2. #2
    Join Date
    Jun 2004
    Posts
    1,961

  3. #3
    Join Date
    Dec 2002
    Location
    NY, NY
    Posts
    3,974
    The one you posted is a bit of a hassle. You must start itunes, then open up the javascript. etc..
    I would rather have everything open at once.

    Any better suggestions?
    Last edited by ilyash; 04-24-2005 at 01:11 PM.

  4. #4
    Join Date
    Dec 2002
    Location
    NY, NY
    Posts
    3,974
    I Found this JS somewhere:
    PHP Code:
    var iTunesApp WScript.CreateObject("iTunes.Application"); 
    function 
    ITEventTest_OnPlayerPlayEvent(newTrack) { 
    var 
    inet WScript.CreateObject("InetCtls.Inet"); 

    inet.Url "http://www.typepad.com/t/app/lists?__mode=save_item&list_id=######&song="+newTrack.Name+"&artist="+newTrack.Artist+"&Album="+newTrack.Album+"&rating="+newTrack.Rating
    newTrack.Name " (" newTrack.Artist ")"; */ 
    inet.RequestTimeOut 10
    inet.OpenURL(); 

    // attach event sink 
    WScript.ConnectObject(iTunesApp"ITEventTest_"); 
    WScript.Echo("Waiting for play events from iTunes..."); 
    while (
    true) { 
    WScript.Sleep(1000); 

    It appears to me that nothing calls the function.
    it is like
    function{}
    sleep;

    I dont see where the function is called.

  5. #5
    Join Date
    Sep 2001
    Location
    Sunnyvale, CA
    Posts
    979
    Function is called here:

    Code:
    WScript.ConnectObject(iTunesApp, "ITEventTest_");
    Basically what that does it tie the object written above to handle events which are triggered in the iTunes app. Although I don't know if the above code actually works, that is the idea of what it's doing.
    Jeremy Johnstone
    Personal Blog: http://www.jeremyjohnstone.com/blog

  6. #6
    Join Date
    Dec 2002
    Location
    NY, NY
    Posts
    3,974
    why doesnt it call the full name.. just half of it?

    And it doesn't work, so I am wondering what is wrong with it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •