Force quitting from a script
Force quitting from a script
- Subject: Force quitting from a script
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 22 Dec 2015 18:06:02 +0000
- Thread-topic: Force quitting from a script
I'm doing a script that needs to quit and relaunch an application (usually
Google Chrome, sometime Safari), often when the application is in a bad
state. (not repsonding).
Sometimes the application will respond to a Quit command, but sometimes
after that when I try to activate it I get a connection invalid message.
Other times it won't respond to quit, so when the command times out I do a
shell script:
"killall Google Chrome"
But then I get an error message that there were no processes I owned
matching the command.
So my questions are:
What's the best way to force quit an unresponsive application?
Is there a workaround for the invalid connection error when you quit and
relaunch an application from the same script?
Is there way to find out what the name of a specific process is for the
killall command? (In case I just have the process name wrong. I've tried
numerous variations)
Is there a way to make sure that the process (Google Chrome) is owned by
me when I send the KillAll command?
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden