## Write a playlist file

You have a question or need an advice about how to do something? Ask it here!
Quentin D
Posts: 76
Joined: 20 Aug 2015 13:18
##### Write a playlist file
Hi Bernd,
I'm trying to write playlists files, using the event Playlist > OnTrackPlay :

Code: Select all

EXEC_WRITE_FILE Z:\www\radio\playlists\${yyyy}-${MM}-${dd}.txt|au|${HH}:${mm}${trackname}${CRLF} The problem is the${CRLF} macro doesn't seems considered, because the output file only contains one line. Is there something I missed?

Thanks,
Quentin
radio42
Site Admin
Posts: 6538
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
##### Re: Write a playlist file
I just tested it and I cannot reproduce your issue!
Here, the ${CRLF} is evaluated and all is working as expected. To test it, I was using the following command: Code: Select all EXEC_WRITE_FILE C:\Temp\text.txt|au|Line${CRLF}
The 1st time when I called this control-command it gave me this:
The 2nd time when I called this control-command it gave me this:
The 5th time when I called this control-command it gave me this:
As you can see, all as expected... I am not sure how you are testing things?!
Quentin D
Posts: 76
Joined: 20 Aug 2015 13:18
##### Re: Write a playlist file
It is strange, using the "Test" button, it doesn't work.
It is working since I clicked on the OK button of the "Settings & Options" window
radio42
Site Admin
Posts: 6538
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
##### Re: Write a playlist file
No, as the test button does not resolve macros - it even tells you, when you click it
You can assign the command to one of the 50 User buttons to test it - or test it with a real playlist...
Quentin D
Posts: 76
Joined: 20 Aug 2015 13:18
##### Re: Write a playlist file
Oh ok, I didn't think that was all macros
Thanks for the tip!