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.

Was it helpful?

Solution

Try this:

log "Glassfish Home: " & (system attribute "AS_HOME")
Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top