tell application "System Events" to keystroke "w" using command down
<key>LSUIElement</key>
<string>1</string>
Current frontmost window of what? Finder? Another app? Or are you looking for something non-specific?3mors said:i know that it's so simple, but i can't get to close the current frontmost window using applescript, i'd like to assign this action to a button of my mighty mouse
who could help me?
thanks