mpco / AlfredWorkflow-Recent-Documents

Quickly open recent documents and apps / 快捷打开最近访问的文档或应用
MIT License
351 stars 18 forks source link

rd crashes due to "Operation not permitted" error. #14

Closed fredcallaway closed 3 years ago

fredcallaway commented 4 years ago

This is the log output when I open alfred and type rd

[16:39:35.321] Logging Started...
[16:39:37.861] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[16:39:38.297] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[16:39:38.303] ERROR: Recent Documents / Apps[Script Filter] Code 1: Traceback (most recent call last):
  File "main.py", line 170, in <module>
    allItemsLinkList.extend(itemsLinkList)
TypeError: 'NoneType' object is not iterable
[16:39:38.304] Recent Documents / Apps[Script Filter] [Errno 1] Operation not permitted: '/Users/fred/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentDocuments.sfl2'
[16:39:38.305] ERROR: Recent Documents / Apps[Script Filter] JSON error: Invalid value around character 1. in JSON:
[Errno 1] Operation not permitted: '/Users/fred/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentDocuments.sfl2'
yinxufeng commented 4 years ago

same issue

yinxufeng commented 4 years ago

@fredcallaway Alfred preference General permissions : open macOS Full Disk Access preference

fredcallaway commented 4 years ago

@yinxufeng That worked, thanks!!