The easiest way would be to simulate command-W. You can do this in AppleScript using System Events, like so:For this to work, you need to enable GUI scripting in AppleScript Utility ("/Applications/AppleScript/AppleScript Utility.app")Code:tell application "System Events" to keystroke "w" using command down




LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks