-- This AppleScript displays a dialog with info -- (environment variables, current folder, etc) -- about the execution environment seen by GUI apps. -- It also puts this info on the clipboard. -- Run it from Script Editor or save it as an application -- and run it via double-clicking. set envVars to (do shell script "/usr/bin/printenv") set cwd to (do shell script "/bin/pwd") set envVarsStr to "Environment Variables:" & return & envVars set cwdStr to "Current Folder:" & return & cwd set info to envVarsStr & return & return & cwdStr set the clipboard to info display dialog info buttons {"OK"}