quit applications & bypass 'are you sure dialogs'

Hi there

I am trying to quit an application so far I have this:


tell application "iChat"
	quit
end tell


Its simple I know but I am really new to Applescript!!
I can run this but if there is an av chat running, the Finder or System Events (I think) throws up a dialog. I have found this in the library but I don’t know how to use it. Can someone please help me?

quit‚v : Quit the application.
quit
[saving yes/no/ask] : Whether or not changed documents should be saved before closing.

woops

i forgot to say
thanks
jamil

Hi,

control the app instead of being controlled by the app :wink:


tell application "iChat"
	close (windows whose name contains "Chat")
	quit
end tell

hi stefan

thanks again, i tried it and it worked!!

best
jamil