@aaronventure I already have a working shell script from the pkg installer I had earlier, so I could definitely reuse that. I'm totally new to background tasks, though. Could you please help me out to understand what I should pass into the docs example? Thank you!
Beta Testers
All developers participating in the HISE Betatest Program
Posts
-
RE: File.move to user library on a Mac - help!
-
RE: applyMask behaves differently at different UI scales
@Fergler that mask is one of the final bosses of HISE UI stuff
-
RE: File.move to user library on a Mac - help!
@tomekslesicki https://docs.hise.dev/scripting/scripting-api/backgroundtask/index.html#runprocess
You can drop an entire script as a string as an argument into runProcess. Just pretend you're calling the script from a terminal. ChatGPT can help you here a lot.
Keep in mind that you'll need different variations of the runProcess function for Windows and macOS, as you'll use PowerShell on Windows and probably bash on macOS.
-
RE: File.move to user library on a Mac - help!
@ustk said in File.move to user library on a Mac - help!:
Wouldn't it be safer to use a background task
Well I haven't ran into any issues with it, however in a recent update in Rhapsody I've put the move file stuff into a background task (no shell script), but not because it was failing, but because it was holding up my GUI.
-
RE: File.move to user library on a Mac - help!
@aaronventure @ustk @d-healey thank you!
@ustk could you please give me an example of the background task running a shell script so I can test this?
-
RE: File.move to user library on a Mac - help!
@ustk BackgroundTask is a great fallback option when the JUCE/HISE stuff seems to be inadequate for the job, but David's making a lot of sense in his post, too.
-
RE: File.move to user library on a Mac - help!
@tomekslesicki @d-healey Wouldn't it be safer to use a background task with a shell command anyway? Seems asking for troubles to do this from Hise/exported binary... @aaronventure seems to master this bit...
-
RE: Multiple Panel Dragging
@ustk Thanks, I'll continue with Save in Preset disabled for now as it's working in the context of my project :)
Cheers for your help!