Um, yeah. You guys clearly didn't get the memo, they fixed OptiFine so you can just put it in the mods folder now. Good job figuring it out anyways.
Maybe you should send a copy of that memo to my Mac, cuz it crashes in less than 3 minutes with Optifine in the mods folder. Take it out and it will run all day...but only as well as Minecraft without Optifine can.
While I usually defer to anonymous snark, I think I'll just give the op a chance.
I am brand new to minecraft and still have allloooooot to learn. I followed evrything you said and when Minecraft forge 1.6.4 came up, Optifine was not in forge. I tried putting the file right into mods folder, but then Minecraft wouldn't start up. My only idea is that when I went to download optifine, under the 1.6.4 versions they were titled 1.7.2. I think I am going to try Minecraft without Optifine, this is my second day trying to get it to work. I know this is an old post, but HELP WOULD BE APPRECIATED!
Why not just create a new profile and tell it to use the forge version as its original.. Why go through the process of editing text documents, don't you think the official laucher would be much more user friendly?
Some mods require forge versions later then version 881.
To the non smart person who said to just drop optifine in the mods folder, yes you can do that but only if you have forge installed. Forge and optifine have some fights over who gets to controll what, if you install optifine over forge optifine wins, but this can cause crashes if you have some mods that need forge to win instead of optifine (like tinkers construct).
Thx for the help im doing this to play divine rpg but now optifine is fixed so drag it into a your minecraft mods folder (make one if u dont have one) and just run forge the version1.6.4 and there you have optifine I will also add divinerpg so u do the same thing!
Simply download the INSTALLER, yes INSTALLER, and put the .jar INSTALLER in your mods folder. As simple as it is, it works for me on the latest 1.6.4 forge and Optifine 1.6.4 HD_D1 Ultra. If this changes anything, i am using a macbook pro.
* The only mod i am using other than Optifine is Pixelmon.