Script Photoshop batch

How can i check if Photoshop is still opening or saving a file before giving it a new request from Applescript?
I am fireing up Applescript from a commandline script which asks Applescript to give parameters to Photoshop and the Applescripts stops
Now I want Applescript to stay running or wait until photoshop opens, manipulates and then saves an images. If Photoshop is done then I want Applescript to write it in a log (small sub routine) and then stops.

can anyone help me out?

tahnks Nikaj

Can you show us what you’re doing? I’m not sure what you mean by “give parameters to Photoshop.”