ok if i want to kill an app gracefully what command can you use as opposed to kill or kill with pid. on my computer my wife and i have iphones and each share the same iphoto library. I can use kill to kill it as the other user but i think that corrupted my iphoto database that i just had to restore from timemachine. help.
This should do it:
tell application "iPhoto" to quit