aaagat111 macrumors regular Original poster Feb 14, 2008 #1 I want to write applescript code that will simply just close the active window, basically performing the apple + w command. can anyone tell me how to do this. Thank you very much -Alex
I want to write applescript code that will simply just close the active window, basically performing the apple + w command. can anyone tell me how to do this. Thank you very much -Alex
K kainjow Moderator emeritus Feb 14, 2008 #2 Try this: Code: tell application "System Events" to set app_name to name ¬ of the first process whose frontmost is true tell application app_name to close front window
Try this: Code: tell application "System Events" to set app_name to name ¬ of the first process whose frontmost is true tell application app_name to close front window