fromAbsolutePath
-
I'm trying to use fromAbsolutePath on OSX. Is there a way of defining the "$HOME" directory like you can in bash scripts but in HISE?
-
@DanH Same as bash
~/
-
@d-healey ah yes, ok that seemed to work. It's returned an object. Do you know what I can do with that object?
Basically I'm trying to get the location string out of an existing LinkOSX file and use it to write a new Link file in a different directory.
EDIT - just found loadAsString. Getting somewhere with it...
-
@DanH It's a File object, look up File in the api
-
Is there a Widows equivalent for ~/ or is it the same?
-
@DanH Not sure. Where is the link file located? Is it in appData?
-
@d-healey it’s not. It’s in Roaming etc but under a different app name that will share the same sample folder. To avoid the user installing the samples twice I’m trying to make this work.
-
@DanH Roaming is in appdata, no?
-
@d-healey oh ha, yeah I thought you meant appData as in the Hise file system.
-
@DanH Don't use absolute paths unless absolutely necessary. If you want the (cross platform) folder for application data, just go two levels above your app data folder (it's always
AppData/Company/Product
const var systemAppData = FileSystem.getFolder(FileSystem.AppData).getParentDirectory().getParentDirectory()
-
This post is deleted! -
@Christoph-Hart great, all working so far, thanks!