View Full Version : End Program

Aug 21, 2007, 10:17 PM
Ok there may be a simple answer out there that I am overlooking but help with this would be awsome. Is there a simple way with applescript to end a program? I've found a way to start one but I dont know how to end the program using the script. What i'm trying to accomplish is via mail have certain commands that will start\end a certain program. Thanks for the help! :apple:

Aug 21, 2007, 11:51 PM
The safe way (similar to File > Quit):
tell application "TextEdit" to quit
The less safe way (similar to force quit):
do shell script "killall TextEdit"

Aug 22, 2007, 06:45 AM
Thank you very much ill give it a try when i get home!

By the way do you know of any good websites out there that teach you some simple apple script commands? I'm new to this and wanna learn.

Aug 23, 2007, 05:15 AM
Take a look at this: http://www.fischer-bayern.de/as/as4as/AS4AS_e.pdf

Aug 23, 2007, 03:33 PM
That is exactly what I need! THANK YOU SO MUCH!!! Both of you!