How to use environment variables in applescript
-
19-01-2021 - |
Question
I'd like to use my environment variables, which were defined in my environment.plist file, in my applescript.
How do I do that, for instance:
log "Glassfish Home: " & AS_HOME
Where AS_HOME is my environment variable.
Solution
Try this:
log "Glassfish Home: " & (system attribute "AS_HOME")
Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange