Problems with the command delete function in applescript
keystroke "backspace" using command down  

[might be delete rather than backspace - auto-deletes are not something I want to be playing with on my first coffee of the day] ;)