• Moderator
    gunne
    Posts: 441 from 2003/2/26
    From: Sweden
    Hi again,

    > And when it comes to MP3's it opens AmiNetRadio just fine but then the Arexx script crashes with an error on line 15.

    ----

    I made a slightly change tho the Arexx-script, ANR.rexx, which should wait for the port and not cause this error message if ANR not is already running.

    Try this instead.


    /*
    ** $VER: ANR-Script 1.1 (01.15.2006)
    */


    ANRPATH = 'Work:Extras/AmiNetRadio4/AminetRadio'


    parse arg mode' 'url
    options results

    IF ~show('P','AMINETRADIO.1') then address command 'WBRun 'ANRPATH
    do
    if ~show('P','AMINETRADIO.1') then address command 'waitforport AMINETRADIO.1'
    end

    address 'AMINETRADIO.1' 'PLAY NAME='url


    You need to change ANRPATH to where your AmiNetRadio is located.

    Gunne

    [ Edited by gunne on 2006/1/16 3:07 ]
    Best wishes, Gunne
  • »15.01.06 - 17:43
    Profile Visit Website