
Untitled
By: a guest on
Jun 30th, 2012 | syntax:
Delphi | size: 0.60 KB | hits: 30 | expires: Never
-- 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"}