Yeah you type this in your search bar (if windows) %appdata%/.techniclauncher then go to bin, right click on modpack.jar and open with either 7zip or winrar. then just click and drag the contents of the optifine folder into it, delete the meta inf folder and your done.
Im not sure how its done for mac but im sure is a similar process.