Posts: 458
Threads: 30
Joined: Oct 2013
Reputation:
8
03-17-2017, 09:02 PM
(This post was last modified: 03-17-2017, 09:04 PM by Lexridge.)
How would one go about the concept of a single lua script working with all supported platforms when dealing with the filesystems? When absolute paths become involved, how does one distinguish from the script, which OS Mixbus is running on in order to use the correct PATH? Sorry for the stupid question, but I had decided to attempt to write a lua script for MP3 import/export. Once I started thinking about it, the PATHs became a concern.
ASUS M5A99FX PRO R2.0 w/AMD FX-8350 Eight-Core Processor 32GB RAM
M-Audio Delta 1010 / Echo AudioFire 12
Mixbus v7.x on Fedora 33 64bit
Posts: 3,163
Threads: 105
Joined: Sep 2013
Reputation:
134
Luckily, scripts are editable by the user. So you could make a variable like: path_to_my_files="/path/to/the/files" and the user would have to edit the script to match their needs.
Posts: 458
Threads: 30
Joined: Oct 2013
Reputation:
8
Thanks to both of you for your replies. @x42 That is a very handy way to do it! Sound work nicely.
I have not done anything with it yet. Had a few surprises this weekend, such as a cat stuck in my HVAC duct work! GAWD!! 20 hours later, it is freed and fine.
ASUS M5A99FX PRO R2.0 w/AMD FX-8350 Eight-Core Processor 32GB RAM
M-Audio Delta 1010 / Echo AudioFire 12
Mixbus v7.x on Fedora 33 64bit