Skip to main content
Topic: foo_run 0.3.8 (Read 470222 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: foo_run 0.3.8

Reply #600
Hello,
Is there any way to nest the run commands in context sub-menu groups?

Re: foo_run 0.3.8

Reply #601
Hello!
Florian, could you consider processing archived items of playlist. Now, as I understand, it is not possible (or am i wrong?), to run an archived item of playlist at an external application. The %patch% instruction returns the full path to the file in the archive including the name of the archive.
For example: for the file aaa.xm in the archive D:\bbb.zip - the %path% instruction returns D:\bbb.zip|bbb/1/2/aaa.xm.
Thank you!

Re: foo_run 0.3.8

Reply #602
Super interesting component.. thank you for the work on this!

I've got a question. I added a batch file under run service (literally just the full path to the .bat file). It works from context menu.
Now I added a button to the toolbar that is supposed to do the same. And it does, *as long as a file in the playlist is selected*.

Is there any way to lift that restriction, i.e. make it run regardless of whether anything is selected?

Re: foo_run 0.3.8

Reply #603
For example: for the file aaa.xm in the archive D:\bbb.zip - the %path% instruction returns D:\bbb.zip|bbb/1/2/aaa.xm.
Check if this works:
Code: [Select]
$substr(%path%,,$sub($strstr(%path%,|),1))

Re: foo_run 0.3.8

Reply #604
@mgpai, thanks for your reply!
but unfortunately it did not work.
The script you are proposing changes the look of the path but not the functionality.
The contents of the archive files are still not available to run using foo_run.

Re: foo_run 0.3.8

Reply #605
The contents of the archive files are still not available to run using foo_run.
Sorry, I misunderstood your question. The content of the archive files can be accessed using %_path_raw%, but looks like the extracted file cannot be accessed outside foobar.



Re: foo_run 0.3.8

Reply #608
So, you want foo_run to unpack a file into a temporary file, pass it to the external application, wait until the application ended, and repack the file back to the archive?
I don't think it's feasible.


Re: foo_run 0.3.8

Reply #610
Why do you even need to open tracks in an external application if you aren't going to be modifying them?

Re: foo_run 0.3.8

Reply #611
Why do you even need to open tracks in an external application if you aren't going to be modifying them?
In case I only need to read this track without modifying. For example, an archived music module is played in an external application.

Re: foo_run 0.3.8

Reply #612
Ah, for comparison perhaps? Do note that foo_openmpt54 has a (live playback) pattern viewer, but I can imagine it may be useful to open modules in a fully fledged tracker for examination.

Re: foo_run 0.3.8

Reply #613
Ah, for comparison perhaps? Do note that foo_openmpt54 has a (live playback) pattern viewer, but I can imagine it may be useful to open modules in a fully fledged tracker for examination.
kode54: I absolutely agree with you.

Re: foo_run 0.3.8

Reply #614
Super interesting component.. thank you for the work on this!

I've got a question. I added a batch file under run service (literally just the full path to the .bat file). It works from context menu.
Now I added a button to the toolbar that is supposed to do the same. And it does, *as long as a file in the playlist is selected*.

Is there any way to lift that restriction, i.e. make it run regardless of whether anything is selected?

anyone? Bueller?

Re: foo_run 0.3.8

Reply #615
I'm not sure, but I think that "Run service" works only if you select a playlist item.

Re: foo_run 0.3.8

Reply #616
I'm not sure, but I think that "Run service" works only if you select a playlist item.

Hmm. Thanks for responding!

If that's the case, does anybody happen to know any way I could make it automatically select any (or even all) playlist items before executing the rest of the service?
Cause for my thing it literally doesn't matter which item is selected, it has no relation to the playlist items.

Alternatively, is there any other option besides using foo_run that I can try, in order to run an external batch file with just one click onto a foobar menu button?

Re: foo_run 0.3.8

Reply #617
If it doesn't relate to any playlist item then what's the reason to work within the foobar environment and not call the batch file directly in windows (via shortcut or otherwise). What exactly does this batch file do for you to need to use it in foobar but not on a playlist item?

Re: foo_run 0.3.8

Reply #618
I'm not sure, but I think that "Run service" works only if you select a playlist item.

Alternatively, is there any other option besides using foo_run that I can try, in order to run an external batch file with just one click onto a foobar menu button?

It is possible to create a menu entry with foo_schedule.
https://hydrogenaud.io/index.php/topic,107203.msg877453.html#msg877453

Re: foo_run 0.3.8

Reply #619
If it doesn't relate to any playlist item then what's the reason to work within the foobar environment and not call the batch file directly in windows (via shortcut or otherwise). What exactly does this batch file do for you to need to use it in foobar but not on a playlist item?
Convenience

It is possible to create a menu entry with foo_schedule.
https://hydrogenaud.io/index.php/topic,107203.msg877453.html#msg877453

I'll check that out, thank you!

//edit: it works perfectly - thanks again.

//edit: to sate jazzthieve's curiosity, the batch file runs this:
Code: [Select]
foobar2000.exe /command:"Select All" /command:"Remove" /exit

Having this run on a button from within foobar effectively replaces foobar's "x" (close) button - but additionally clears out the active playlist so that the next start is "clean".

(obviously very hacky solution, but it vorkz!)

 
SimplePortal 1.0.0 RC1 © 2008-2019