Page 1 of 2

Using result from PLS_CURRENT_GET_ENTRY

Posted: 22 Apr 2024 14:08
by agedeo
Hello,

I am creating a script in ProppFrexx script editor:
This script looks like this:
2024-04-22_14h35_08.png
2024-04-22_14h35_08.png (5.18 KiB) Viewed 13318 times
#2 is a self created python script that creates an MP3 file used in #3
I would like to use the trackname of #1 as parameter in #2

My plan was to use the command PLS_CURRENT_GET_ENTRY to get that information
2024-04-22_14h36_31.png
2024-04-22_14h36_31.png (5.08 KiB) Viewed 13318 times
But how do I use the result of PLS_CURRENT_GET_ENTRY in EXEC_SHELL_COMMAND?

It is possible I am thinking in the wrong direction here, if you have any better suggestions it would be greatly appreciated.

Re: Using result from PLS_CURRENT_GET_ENTRY

Posted: 22 Apr 2024 15:24
by radio42
First note, that a script-line is executed when the line is executed and NOT when the track is played. I.e. when a new track is requested from the playlist to be schedled to a playlist - this is sometimes timing wise 3 tracks ahead of its play time.

Regardless, the _GET commands are typically designed for external applications to query a result.
But internally they can not be used to retrieve a result.
For this you need to use script macros. On this case the "*[EXEC:{controlcommand}]" macro.
This macro actually returns the reply of a control-command.

For example you can omit your 2nd Command script-line and instead use the macro in your 3rd LoadTrack command, e.g. like this:

Code: Select all

LoadTrack, C:\Elevenlabs\*[EXEC:{EXEC_SHELL_COMMAND_SYNC C:\Elevenlabs\run.bat xyz}].mp3, Count=1
This assumes, that the batch returns xyz and not the extension - that's why I added .mp3 as well.

Re: Using result from PLS_CURRENT_GET_ENTRY

Posted: 22 Apr 2024 15:46
by agedeo
Thanks for your answer, but how do I let run.bat know what the trackname of the previous track was?
Please note that the runtime of run.bat is around 10 seconds. It is not possible to let it run after the track ends.

Re: Using result from PLS_CURRENT_GET_ENTRY

Posted: 22 Apr 2024 17:19
by radio42
I am afraid, that this is currently not possible.

Re: Using result from PLS_CURRENT_GET_ENTRY

Posted: 15 May 2024 09:45
by Gennaro_77
good morning, I'm new to the forum, some information, I need to send the artist cover to the site, that is, an external hosting server, can you help me, thanks

Re: Using result from PLS_CURRENT_GET_ENTRY

Posted: 15 May 2024 11:34
by radio42
Note, that most info is also available as macros (see user manual appendix).
Regarding sending the current album art to a web site, please see here:
viewtopic.php?p=2143
(read the while thread…)

Re: Using result from PLS_CURRENT_GET_ENTRY

Posted: 15 May 2024 12:36
by Gennaro_77
so we have already configured all this C:\MBRecasterFree\OnAir.jpg|0|300 because we use mb radio encoders and we need to set something else to make the cover appear on the site
Superior

Re: Using result from PLS_CURRENT_GET_ENTRY

Posted: 24 May 2024 13:57
by Gennaro_77
Hi, I'm trying in every way to configure everything to send the cover to the website but nothing could you give us directions with various steps to follow? we use mb recast as encoder thanks for the moment

Re: Using result from PLS_CURRENT_GET_ENTRY

Posted: 24 May 2024 14:11
by radio42
Please post you questions in English.

Re: Using result from PLS_CURRENT_GET_ENTRY

Posted: 27 May 2024 22:10
by radio42
Have you read my post/link above?
What exact command and event are you using?