Generally CS4 is not compatible with Yosemite. You're using a version of InDesign that is five versions behind, and was never tested with Yosemite.
You could try a clean install of Yosemite on your computer, then do a clean install of CS4 but there are no guarantees. Sadly, you're on your own.
Agree with Steve on both points.
That said, you might try uninstalling CS4, running the CC Cleaner tool and then reinstalling CS4 first.
But you are on your own.
I think that it is more factually correct to state that “MacOS 10.10 (a.k.a. Yosemite) is not compatible with CS4 and many other applications.” Apple has effectively discarded the tradition that new operating system versions must allow existing applications to run without modifications.
If you have been using Time Machine, you can probably restore to Pre-Yosemite.
If you have plenty of space on your hard drive, you can do what I did:
First create a back-up of everything.
Use Disk Utility to create a partition on your hard drive. (first verify your disk).
Use Disk Utility to restore your first partition to the new partition, (making an exact copy of your hard drive).
Confirm you can use the new partition as your start-up disk.
Now go ahead and load Yosemite on the new partition.
When you need to use CS4, start up from the first partition.