-
Determine OS with Script and Apply Preset
As the title suggests, I’m trying to determine which OS the user is on and then apply a preset from the app Presets folder. Here’s what I have:
var os = os.indexOf("Mac") == 0 ? "MAC": "WINDOWS";
if (os =="WINDOWS"){
var myPreset = Folder(Folder.appPackage.parent.absoluteURI + "/Support Files/Presets/MyPreset.ffx");
}else if (os=="MAC"){
var myPreset = Folder(Folder.appPackage.parent.absoluteURI + "/Presets/MyPreset.ffx");
}Should be pretty simple and it works on my Windows machine, but the script will not fire on a Mac. Any suggestions?