alfred-workflows icon indicating copy to clipboard operation
alfred-workflows copied to clipboard

[Recent Documents] List of recent documents from Apple's `com.apple.recentitems.plist` tend to be outdated

Open Jyqft opened this issue 9 years ago • 5 comments

Looking at the workflow's files, it seems to me that the file get_recent_documents.scpt is responsible for the population of the recent documents from Apple's side (as opposed to Alfred's); also, that same AppleScript file seems to look at ~/Library/Preferences/com.apple.recentitems.plist for getting the recent documents.

The problem I'm experiencing is that this list of files tends to get outdated. If I compare the results from the workflow (which is based off com.apple.recentitems.plist) to  > Recent Items or to the Dock or to the dock stack for recent items, the latter two always contain the more recently opened files, as opposed to the former. Deleting com.apple.recentitems.plist and restarting the Mac seems to fix the update problem, but after that, the .plist file gets frozen in time again.

Are there any possible workarounds for this problem?

Jyqft avatar Jan 06 '16 16:01 Jyqft

@ctwise: Any updates?

Jyqft avatar May 13 '16 18:05 Jyqft

I experience this as well. Any ideas how to resolve this?

mrueegg avatar Jun 26 '16 05:06 mrueegg

Unfortunately, everything has been deprecated in 10.11. That includes the programmatic way to get this list. So this functionality will probably never be reliable.

ctwise avatar Jun 27 '16 14:06 ctwise

I forgot to mention: I'm on 10.10.5 right now. Even on this version, it's not working reliably. Could've sworn it was working reliably in the past.

I've read about the .plist file being deprecated in 10.11; is there no other alternative file to read from?

Jyqft avatar Jun 27 '16 17:06 Jyqft

No, no alternative. And when I went to do it programatically I found the API has been deprecated. So any solution would be temporary.

On Mon, Jun 27, 2016 at 1:29 PM, Jyqft [email protected] wrote:

I forgot to mention: I'm on 10.10.5 right now. Even on this version, it's not working reliably. Could've sworn it was working reliably in the past.

I've read about the .plist file being deprecated in 10.11; is there no other alternative file to read from?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ctwise/alfred-workflows/issues/19#issuecomment-228815330, or mute the thread https://github.com/notifications/unsubscribe/AAAVhpuetK6_V_2PS2WiqoV1GHuMRielks5qQAhsgaJpZM4G_srK .

ctwise avatar Jun 27 '16 19:06 ctwise