Enviroment variables from xcode

Hi,

how can I use the enviroment variables from xcode on my applescript. e.g.

APPLE_INTERNAL_DEVELOPER_DIR
or
BUILD_PATH
etc.