Sam, thanks for the info. It looks like that will do exactly what I want. :-)
-- alan
P.S., the app that I am trying to pass the environment variable is the OSX port of GNU Emacs, which derives certain aspects of its config from environment variables, even though that isn't the way most native OSX apps behave.