Does TextMate honor the stuff in environment.plist?
Sure it does. When you log in, the values in environment.plist are set, and passed on to all applications that you launch.
If so is there some way I could identify in .profile if I'm being called by TextMate?
My question would be, why do you need to set the values in .profile as well? All I can think of is that you sometimes ssh into the machine, and you want the environment variables to be set when you log in via ssh. If that's it, and you don't want to redundantly re-parse
environment.plist, couldn't you just do
if [ -z "$SSH_CONNECTION" ]; then
# parse $HOME/.MacOSX/environment.plist
...
fi
Robin