How to install an Operating System after replacing optical Drive by a second HDD on MacBook white late 2009?
I assume you want to get the OS and apps on your SSD and the rest of your files on the HDD.


Attach the optical drive to it's SATA II connection and the SSD to the SATA III connection.
Install the OS and apps on the SSD. 
Replace the optical drive with the HDD.