Dear Apple: We are developing a file management-related app, and I would like to retrieve the list of files from the "Recents" section under "Favorites" in the Mac sidebar, then display this information in the app's interface for users. Is there an API available to obtain this information?
The canonical way to get access to recent files is via the LSSharedFileList
API. It supports lists like:
kLSSharedFileListRecentApplicationItems
kLSSharedFileListRecentDocumentItems
kLSSharedFileListRecentServerItems
However:
- These are well and truly deprecated.
- I’m not sure if they even still work. It’s been a while since I tested them.
- Your other thread suggests you’re building a sandboxed app. These APIs don’t work in a sandboxed app because, in general, sandboxed apps are not allow to see stuff outside of their sandbox.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"