Re: Quitting current application
Re: Quitting current application
- Subject: Re: Quitting current application
- From: Steve Mills <email@hidden>
- Date: Fri, 14 Oct 2016 13:15:32 -0500
On Oct 14, 2016, at 12:41:51, -dan d. <email@hidden> wrote:
>
> I have been trying without success to do a scrippt which will send:
>
> keystroke "q" using command down
>
> To quit the current open application I'm in.
>
> How can this be done regardless of which application it is?
Why not just tell the app to "quit"? It's a standard verb.
tell application "System Events"
set frontApp to item 1 of (application file of every application process whose frontmost is true)
end tell
tell application frontApp
quit
end tell
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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