First I must said that I have been asked this question in different form in this topic. but my problem didn't solved yet.
When I want my laptop do a long schedule thing (like get all Mac OS X new update (need 7 hours)) and I don't want to sit behind it all 7 hours I lock their screen and go away but when I come back and enter password I see that a fresh operating system comes up and no application running!!!
I also use caffeine and set energy saver to never but still have this problem.
How can I lock my laptop for a long time and my running application work during this time (like you press window+L in windows)
I really want a good answer, I don't know can I do it with automator or not?