Depends on where you live.
If you live some place like Arizona- you will want to keep it on ALL the time since it's so hot. You can turn it up a couple degrees if you are going to be gone all day. So say set it at 82 and then when you get home turn it to 80. Any more than a couple degrees variance though, the thing will run forrever to bring the temps down. So for example, don't let it get 85 in your house and then turn the A/c on to 72.
If you live some place that has alot of humidity you will also always want to keep it on. If you have lots of humidity and switch back and forth between open windows and having it on, it makes the A/C system work really hard because not only does the machine run to cool the air it also works hard tp remove the humidity from the air.
If you live somplace dry and just sort of hot.. ummm. like western San diego- cities inland for example ( la mesa, Santee) You will do fine opening your windows at night, letting the cool air in, turning OFF the air, and then in the moring, close all the windows and set your A/C system to turn on at the temperature you deem hot ( 80 or whatever)
The key with A/C systems ALWAYs keep every door and window shut while it's running. A/C systems are nothing like swamp coolers which actually need a window cracked open to the ouside. Shut everything up tight with A/C.

HTH
there are 2 school of thought to Air Conditioning, One is turn the thing REALLY high when you are gone all day and then come home and crank it down to cool off the house. Some people say this saves money because it's not running all day. Other folks say to just set it and forget it. I don't know if there has ever been proof of saving money more one way than the other. I think other factors play into it more- do you have double pane windoes, shade screens, high seer rating. ect
The BEST article about saving money while using the A/C is here- I've never seen a better article.
Ask Mr. Electricity: Saving money on air conditioning