List of available environment variables

Hey Jack,

You can run from an Execute Shell Script Action:

env

Gets you some.

set

Gets you more.

F=~/"Desktop/KM_ENV_Dump_`date '+%Y.%m.%d.%H%M%S'`.txt"
set > $F;
open -e $F;

Dumps to a dated file in the Finder and opens it in TextEdit.

Some AppleScripts for your specific wants:

tell application "Finder"
  name of startup disk
end tell

computer name of (get system info)

boot volume of (get system info)<br>

Some of these types of things are available as KM tokens.

Keep in mind that KM’s 'Execute Shell Script` Action produces an environment that does not inherit any customizations you’ve made to your system-level-shell.


Best Regards,
Chris

2 Likes