|Jan 27, 2013, 08:43 AM||#1|
[AppleScript] Check what application is running in the foreground
I want to write an AppleScript that will force-quit the application running in the fore-ground (i.e the application in the status bar).
How can I use AppleScript to determine what that application is?
27" Sandy Bridge iMac; 13" 2012 MacBook Air; iPhone 5
In a world of without walls and fences, who needs Windows and Gates?
|Jan 27, 2013, 02:16 PM||#3|
Just expanding on what bumper314 has posted.
tell application "System Events" set frontmostApp to name of application processes whose frontmost is true tell application frontmostApp quit end tell end tell
|Thread Tools||Search this Thread|
All times are GMT -5. The time now is 11:59 PM.