OS X's ability to rename or move a currently-open file right inside the application is really handy:
To take it one step further, is there a trick to actually delete the current file inside the app also? (Obviously 'closing' the file would need to be the second half of the process.)
It would save a lot of time to not have to close the file, manually locate it in Finder, then move it to Trash - but but just delete it right there and then.
I have tried dragging the 'file' (with the file icon to the left of the file name in window title) to the Trash icon on the Dock, but that doesn't actually move it to Trash.
The best I can think of is to add
~/.Trash directory as an item in Finder Favorites, then change the 'Where' in the above screenshot to the created 'Trash' Favorite shortcut, followed by a Cmd+W to close it.
It's a little clunky, but it's not bad.
So is there a nifty Automator workflow / AppleScript (which can then be easily assigned to a hotkey), to make the above process quicker? A single AppleScript that could perform both the step to move current file to 'Trash' directory and then the subsequent Cmd+W keypress after a 200ms gap e.g., would be ideal.