Setting multiple env. variables using launchctl
Hi, I am trying to get a few 3D programs to work together but one of them requires me to set multiple environment variables for the same key to function properly, however, I seem to be unable to solve how to get that done. All my other variables works and ONE of the two works, but not both.
Here is the current code:
do shell script "launchctl setenv MAYA_MODULE_PATH /Applications/Yeti/Yeti-v2.0.12_Maya2015-darwin64"
do shell script "launchctl setenv RLM_LICENSE 5053@localhost"
do shell script "launchctl setenv YETI_TMP /Applications/Yeti/Yeti-v2.0.12_Maya2015-darwin64/tmp"
do shell script "launchctl setenv YETI_HOME /Applications/Yeti/Yeti-v2.0.12_Maya2015-darwin64"
do shell script "launchctl setenv DYLD_LIBRARY_PATH /Applications/Yeti/Yeti-v2.0.12_Maya2015-darwin64/bin"
do shell script "launchctl setenv LD_LIBRARY_PATH /Applications/Yeti/Yeti-v2.0.12_Maya2015-darwin64/bin"
do shell script "launchctl setenv VRAY_PLUGINS_x64 /Applications/Yeti/Yeti-v2.0.12_Maya2015-darwin64/bin"
do shell script "launchctl setenv VRAY_FOR_MAYA2015_x64 /Applications/Autodesk/maya2015/vray/bin,/Applications/Yeti/Yeti-v2.0.12_Maya20 15-darwin64/bin"
It's the last one that is causing troubles. I also have this in a custom script which runs on startup in order to load them every time I start the computer and before I start any applications.
Thank you in advance for any help, tips or tricks!
MacBook Pro with Retina display