Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_run (Read 674477 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: foo_run

Reply #750
I can't start the program auCDtect Task Manager with parametrs "$if(%__referenced_file%,$directory_path(%path%)\%__referenced_file%,%path%)" - as a result, only one track is transferred to the program, despite the fact that I select everything in the playlist (trackwise)



Re: foo_run

Reply #752
It would be great to have a proper batch mode in this. I cannot run parallel processes on thousands of files because it will slow down Foobar2000 tremendously. There should be an option to run them one after the other.

Re: foo_run

Reply #753
I can't start the program auCDtect Task Manager with parametrs "$if(%__referenced_file%,$directory_path(%path%)\%__referenced_file%,%path%)" - as a result, only one track is transferred to the program, despite the fact that I select everything in the playlist (trackwise)
Hell, I can't even get it to load the one track via commandline...  even if just specifying %path% it just starts with an empty list

Re: foo_run

Reply #754
I can't start the program auCDtect Task Manager with parametrs "$if(%__referenced_file%,$directory_path(%path%)\%__referenced_file%,%path%)" - as a result, only one track is transferred to the program, despite the fact that I select everything in the playlist (trackwise)
Hell, I can't even get it to load the one track via commandline...  even if just specifying %path% it just starts with an empty list
Path would need to wrapped in quotes if it has whitespace in the path.

So "%path%" might fix your issue.

Re: foo_run

Reply #755
It would be great to have a proper batch mode in this. I cannot run parallel processes on thousands of files because it will slow down Foobar2000 tremendously. There should be an option to run them one after the other.
foo_run_xgrp solves the problem.

Re: foo_run Bug?

Reply #756
using fbk v1.6.16 and v.2.2preview parallel with foo_run 0.4.5 i discovered it does not behave exacly the same. i exported the foo_run.configuration.xml and imported it into v.2.2.

i want to open several files from different folders in mp3 tag (label "mp3tag open files")
while in fbk 1.6 it opens all selected files, in v.2.2 it only opens the files from the first selected folder.
this is unwanted. is there a change i have to make in the configuration of foo_run?

this ist my settings:
Code: [Select]
<root>
    <service minimized="false" num_exec="50">
        <label>mp3tag open files</label>
        <path>"D:\Programme\Mp3tag\Mp3tag.exe" /fn:"%path%"</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>mp3tag open folder</label>
        <path>"D:\Programme\Mp3tag\Mp3tag.exe" "$replace(%_path%,%_filename_ext%,)"</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>Google Filename</label>
        <path>http://www.google.com/search?q=$replace(%filename%, ,+)&amp;ie=utf-8</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>Google Artist +  Album</label>
        <path>http://www.google.com/search?q=$replace(%artist%+%album%, ,+)&amp;ie=utf-8</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>Google Artist + Title</label>
        <path>http://www.google.com/search?q=$replace(%artist%+%title%, ,+)&amp;ie=utf-8</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>Google Artist</label>
        <path>http://www.google.com/search?q=$replace(%artist%, ,+)&amp;ie=utf-8</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>Discogs Artist + Title</label>
        <path>https://www.discogs.com/search/?q=$replace(%artist%+%title%, ,+)&amp;ie=utf-8</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>Discogs Filename</label>
        <path>https://www.discogs.com/search/?q=$replace(%filename%, ,+)&amp;ie=utf-8</path>
    </service>
    <service minimized="false" num_exec="50">
        <label>Set Write Protection</label>
        <path>attrib.exe +r "%path%"</path>
    </service>
    <service minimized="false" num_exec="50">
        <label>Remove Write Protection</label>
        <path>attrib.exe -r "%path%"</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>OpenAs...</label>
        <path>rundll32.exe shell32.dll,OpenAs_RunDLL %_path%</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>$if(%link%,Follow %link%,No link available)</label>
        <path>"%link%"</path>
    </service>
    <service minimized="false" num_exec="1">
        <label>Discogs Album</label>
        <path>https://www.discogs.com/search/?q=$replace(%album%, ,+)&amp;ie=utf-8</path>
    </service>
</root>

i want to add, after playing with foo_run a little and testing foo_run_xgrp and having both installed at the moment, foo_run partially behaves more than before.

its a bit irritating. sometimes it loads all files, then not.
also when uninstalling foo_run, the configuration remains


Re: foo_run

Reply #758
I upgraded from latest fb2k32-bit to fb2k64-bit (both portable) and have the latest foo_run installed.
fb2k32-bit is on G:\foobar2000
fb2k64-bit is on C:\foobar2000

In fb2k32-bit I use Run Services to call the MusicIp API to create a mix based on the selected song:

G:\foobar2000\foobar2000.exe http://localhost:10002/api/mix?size=30&song=$replace(%_path%, ,+)&$replace(%artist%, ,+).m3u

This path also works from fb2k64-bit (it plays the mix in fb2k32-bit)
However, the exact same path with driveletter changed to "C:"  errors in fb2k64-bit:

Unable to open item for playback (Unsupported format or corrupted file):
"http://localhost:10002/api/mix?size=30&song=G:\MusicG\Pop\Goldfrapp\2003-Black+Cherry\08++Strict+Machine.flac&Goldfrapp.m3u"


It's not because of a format or file error, I checked.

Re: foo_run

Reply #759
You need to manually delete foo_run.dll.cfg from your profile/configuration folder.
thanx, this was only mentioned b/c i guessed it was not meant to behave that way. thinking about it, it makes sense.

Re: foo_run

Reply #760
i would like to open one mediainfo for each one of selected files. or if there is a list view for all selected files, rather this.
how is the string using foo_run or foo_run_xgrp? can somebody fill it up please?
C:\Program Files (x86)\K-Lite Codec Pack\Tools\mediainfo.exe   

Re: foo_run

Reply #761
any help with this?
cmd window flashes briefly as if opening, but nothing further happens

cmd /c "C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe" "C:\Program Files '('x86')'\foobar2000\simple-cors-http-server.py"

also tried
cmd /c "C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe" "C:\Program Files (x86)\foobar2000\simple-cors-http-server.py"

Re: foo_run

Reply #762
cmd /k? Or can you maybe add &&pause behind it and make it stop? Not sure. Or > the output to file? Just ideas, have no Windows at hand rn.

Re: foo_run

Reply #763
The cmd.exe gets called incorrectly. Either enclose everything after cmd /C inside one extra double quotes, or better just remove the "cmd /C " part as it serves no purpose with this line.

Re: foo_run

Reply #764
The cmd.exe gets called incorrectly. Either enclose everything after cmd /C inside one extra double quotes, or better just remove the "cmd /C " part as it serves no purpose with this line.

I tried all:

cmd /c ""C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe" "C:\Program Files (x86)\foobar2000\simple-cors-http-server.py""

cmd /c "C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe C:\Program Files (x86)\foobar2000\simple-cors-http-server.py"

"C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe" "C:\Program Files (x86)\foobar2000\simple-cors-http-server.py"

but same happens - brief flash of what I'm guessing is a CMD prompt opening, but it closes immediately.

simple-cors-http-server.py doesn't execute; also no difference with &&pause

with
cmd /k "C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe" "C:\Program Files (x86)\foobar2000\simple-cors-http-server.py"

CMD window opens but script doesn't run

btw this works fine in powershell (but also can't figure out how to launch that from run as powershell window also closes):
Start-Process "C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe" -ArgumentList '"C:\Program Files (x86)\foobar2000\simple-cors-http-server.py"'


Re: foo_run

Reply #765
Huh?  Wasn't it like this?

"C:\Program Files '('x86')'\foobar2000\simple-cors-http-server.py"
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: foo_run

Reply #766
My mistake, I should have been clearer. I meant your very first line that was otherwise right as it had escaped the parentheses.

"C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe" "C:\Program Files '('x86')'\foobar2000\simple-cors-http-server.py"

Or for example escaping the entire command: '"C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe" "C:\Program Files (x86)\foobar2000\simple-cors-http-server.py"'

Re: foo_run

Reply #767
"C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe" "C:\Program Files '('x86')'\foobar2000\simple-cors-http-server.py"

Ka-ching!

thank you Case!!

"Run service" does not work correctly, if I start it from the Foobar2K toolbar

Reply #768
Hi guys.

Is it a BUG ?

"Run service" does not work correctly, immediately after starting Foobar2K ver. 2.24.1, if I start it from the toolbar (via the icon). However, if I start playing a song in Foobar2K... then from that time on "Run service" works even from the toolbar. I.e. that then my Batch / CMD script in Windows 11 is always started from Foobar2K without any problems.
X

The strange thing is... that starting "Run service" via the context menu (right mouse button on any song in my playlist)... always works. Regardless of whether Foobar2K is just started or whether any songs are already playing in Foobar2K.
X

Thanks.


Re: "Run service" does not work correctly, if I start it from the Foobar2K toolbar

Reply #769
The execution service (foo_run) is executed when a track is selected (clicked) in the playlist view.
Think of it like you would normally use Run services (foo_run).
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: "Run service" does not work correctly, if I start it from the Foobar2K toolbar

Reply #770
Oh... I didn't think of that. Thanks for the tip.

But could it be solved somehow differently ?

Are there other add-ons to the toolbar (command-icons) instead of "foo_run" component ? For example, some kind of shell execution ?

Re: "Run service" does not work correctly, if I start it from the Foobar2K toolbar

Reply #771
After all, you can't get the track information unless you click to select it.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: foo_run

Reply #772
Yes, but I'm practically launching an external application... and I'm using "Run service..." for this purpose. I don't know how else to launch an external program in Foobar2K via its toolbar. I know that I can launch the application directly from Windows, from the Windows-desktop, but it's better to launch this from Foobar2K directly :).

Re: foo_run

Reply #773
The toolbar buttons in default UI are extremely limited.

Columns UI offers more advanced functionality where you can choose the type of selection which does not have to be playing.





Re: foo_run

Reply #774
^ Another alternative - Scheduler (foo_scheduler / foo_scheduler_mod) can setup a 'Menu Item Event' + 'Launch Application' action which is run from the main menu (File > Scheduler) ...

Edit: Oh nevermind, should have looked at screenshot - you need a track selected for that.