Question
Photoshop script: Environment variables for macos
Hi, I have a photoshop scripts that creates UI and saves user's UI preferences to a text file.
I have only tested this on Windows and get the preferences path like this:
var userdir = $.getenv("LOCALAPPDATA")
var prefsDir = Folder(userdir + "/PhotoshopScripts");
var prefFile = File(prefsDir + "/ToolSettings.ini") My question is - will this work on a mac? Is there a different way to get environment variables on a mac?
Also would appreciate suggestions on where people would usually save a prefs file on a mac. Would something under $HOME work?
