Monday, October 19, 2009

Mac Tips: Empty Trash without Preview Blocking

When you open a file in Preview, you may have noticed that Preview marks that file as in-use until you close the application. So you could literally have opened something days ago, and if you haven’t closed Preview, it’s still laying claim to that file.

If you want to delete the file, it can be a pain.

Mac OS X Hints has a simple solution to this problem, though. Open Script Editor and create the following AppleScript.

tell application “Preview”
quit


tell application “Finder”
empty trash

No comments:

Post a Comment