Yosemite does not support running InDesign CS4. You're on your own, there is no official support.
Seriously? The rest of the suite works fine. This makes no sense.
What about UNofficial support? Any takers folks?
Go back! Whatever possessed you to upgrade without checking whether a critical - and now unsupported - app would work??
If you want Yosemite that badly, reformat the hard drive and do a clean
install of Yosemite followed by a normal installation of your software
using the original media…no migration.
You’ll have a much better chance of getting things working.