I’ve just filed a bug with Apple that affects one of Trickster’s core features and also affects all users of OS X, thought they might not realize or care about it.
The problems is related to Last Open Date metadata not being updated for files that have quarantine attribute set in the file system (either because they were downloaded from the Internet or because they were saved from a Sandboxed application, which apparently can also set a different kind of quarantine bit.
Here’s the contents of the bug report:
Most files that are saved from sandboxed applications (or downloaded from the Internet) seem to have their quarantine flag set to some value. For some reason, for most of these files, Last Used Date (kMDItemLastUsedDate) metadata won’t be updated by Spotlight when this file is opened.
It appears that this problem started in OS X Lion (see Workarounds for quarantine bug in OS X Lion on CNET). I also noticed that the problem is not always showing itself. For example, if the first 4 digits are something like 0041 or 0042, the last used date will update. If it’s something else like 0001, it won’t.
I started a thread on it at Developer forums some time ago at https://forums.developer.apple.com/message/66280. No response so far.
Steps to Reproduce:
- In Finder, go to Downloads folder and add Date Last Opened column and sort by it in descending order
- In Safari, go to http://www.apparentsoft.com, right click on ImageFramer icon and “Save Image to Downloads”.
- It should appear on the top of the list in Finder as the file is created with the open date = date added.
- Open other files in Downloads to move them to the top of the list (though it might not work because of this bug). If no files move to the top, wait until the clock changes to a different minute.
- Double click the downloaded PNG from Finder. It should open in default application, like Preview.
Last Open date of the PNG file is updated to the time in step 5.
Last Open date doesn’t change.
Removing the quarantine attribute from the file and then opening it will bring it to the top and update its Last Open date.
Removing of the attribute can be done in the Terminal with:
xattr -d com.apple.quarantine <path/to/file>