Page 1 of 1

Write a playlist file

Posted: 15 Apr 2017 15:42
by Quentin D
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

Re: Write a playlist file

Posted: 15 Apr 2017 16:10
by radio42
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:
1stCall.jpg
The 2nd time when I called this control-command it gave me this:
2ndCall.jpg
The 5th time when I called this control-command it gave me this:
5thCall.jpg
As you can see, all as expected... I am not sure how you are testing things?!

Re: Write a playlist file

Posted: 15 Apr 2017 17:40
by Quentin D
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 ;)

Re: Write a playlist file

Posted: 15 Apr 2017 18:12
by radio42
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...

Re: Write a playlist file

Posted: 15 Apr 2017 18:48
by Quentin D
Oh ok, I didn't think that was all macros :D
Thanks for the tip!