Skip to content

Commit 1e6c4f6

Browse files
added note to $.getenv() for mac
1 parent ae49f8e commit 1e6c4f6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/extendscript-tools-features/dollar-object.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,14 @@ getenv()
402402
Retrieves the value of the specified environment variable, or null if no such variable is
403403
defined.
404404

405+
.. note:: On MacOS the only env vars that will be accessible are:
406+
407+
- System default env vars
408+
- Custom env vars created by the $.setenv() method
409+
- Custom env vars created with `launchctl setenv CUSTOM_VAR "custom_value"` will be accessible.
410+
411+
Any env vars set in .bash_profile, .bashrc, .profile, .zshenv, or .zshrc will be ignored.
412+
405413
Returns: ``String``
406414

407415
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)