Hi driple
Apologies for how long it has taken me to reply to your post!
The issue is that Macs don’t make environment variables (for example your PATH variable, which tells the operating system where to find some important UNIX programs on your computer, including LaTeX or other Python installs) available to every application by default. The way around this is to write a property list file (plist) called “environment.plist” and put it in the “~/.MaxOSX folder” - the system will look for this file on login and make the variables defined in it available to your applications.
The way to do this is as follows:
-
Open a terminal window
-
Run the following
mkdir ~/.MacOSX; cd ~/.MaxOSX
(If you already have this folder the OS will complain but won’t overwrite it). You should now be in the ~/.MacOSX folder, although it won’t appear in the Finder (since folders or files beginning with a period are hidden). -
Now you need a copy of your path. The easiest thing to do is run
echo $PATH
in the terminal and copy the result. -
Next you need to make the plist file. The easiest thing to do is
touch environment.plist; open -a "Sublime Text 2" environment.plist
which should open the file in Sublime Text. Copy the following in:
[code]<?xml version="1.0" encoding="UTF-8"?>
ROOT PATH YOUR_PATH_HERE [/code] replacing YOUR_PATH_HERE with whatever was printed from the echo command at step 3.- Save the file, log out and log back in and everything should work.
You can generate plist files using the developer tools which come with Xcode but they’ve changed everything in Lion so it’s just easier to modify the files in Sublime Text. It’d probably be pretty easy to stick this all in a shell script but I’m too lazy to sort this out at the moment.
Hope this helps! I’ll keep an eye on this thread if you have any problems.