i want pd to trigger an external file with a load bang.
what do you use instead of openpanel when you know what file yuo want to load automatically??
thanks
Load specific file??
i want pd to trigger an external file with a load bang.
what do you use instead of openpanel when you know what file yuo want to load automatically??
thanks
all openpanel does is output a symbol of the filename.
a symbol object or message box will also do what you want.
ie, [/presets/gigantic-bass/404.txt(
hmmm,
itried making a text file called test.txt and placed it in the same folder as my patch.
made a message [test.txt] nothing happened
same for [open test.txt]
what might i be doing wrong?
Thanks
you have to include the entire path to the file.
you can also use ./ to go from the directory your patch is in.
ok,
i see what you're doing. I phrased my question wrong I think.
I am trying to make a file launch outside of PD. i.e a text file opens in notepad or make a batch file/VBScript run rather than load it into PD as in a text file into an array.
Thanks
Hmm, what do Windows users do in the absence of [shell]? Could you use PyExt to run a Python script on Windows?
Use the Source.
so i decided to write an external for this. I tested this on windows only. in the zip file is the dll some example files to open and a pd patch to see how it works.
let me know if you think it could have better features
On a slightly different tack (didt see where to start a new post), I want to make a file open by loadbang. It would be a .dll file for the vst object. Can't see how to do it...
I assume you want to have the [vst~]object startup with specific vst instrumet. Use the dll name as a creation argument.
If vst is name Example.dll, and it has two ins and two outs:
[vst~ 2 2 example.dll]
The [openFile] I made basically is for launching other applications/files by calling a command window in the background and doing an open command.
see attached for code
excellent, thank you.
Oops! Looks like something went wrong!