mpco / alfredworkflow-recent-documents Goto Github PK
View Code? Open in Web Editor NEWQuickly open recent documents and apps / 快捷打开最近访问的文档或应用
License: MIT License
Quickly open recent documents and apps / 快捷打开最近访问的文档或应用
License: MIT License
macOS升级至12.3 Monterey 后,无法使用”rd“ 最近文档,请作者更新,谢谢!
After upgrading MacOS to 12.3 Monterey,I can't use the recent documents. Please upgrade, Thank you!
输入 ra 时,显示的候选项的第一项(ITunes)和第二项(RAID 使用工具)为固定的,从第三项开始才是历史使用过的应用。
这是 debug 的结果
[2019-06-14 21:04:51][input.scriptfilter] Queuing argument '(null)'
[2019-06-14 21:04:52][input.scriptfilter] Script with argument '(null)' finished
[2019-06-14 21:04:52][input.scriptfilter] {"items": [{"subtitle": "\ud83d\udd52 09-25 18:53 \ud83d\udce1 /Applications/Preview.app", "title": "Preview.app", "autocomplete": "Preview.app", "arg": "/Applications/Preview.app", "type": "file", "match": "Preview app Preview.app", "icon": {"path": "/Applications/Preview.app", "type": "fileicon"}}, {"subtitle": "\ud83d\udd52 04-13 12:27 \ud83d\udce1 /Applications/WeChat.app", "title": "WeChat.app", "autocomplete": "WeChat.app", "arg": "/Applications/WeChat.app", "type": "file", "match": "WeChat app WeChat.app", "icon": {"path": "/Applications/WeChat.app", "type": "fileicon"}}, {"subtitle": "\ud83d\udd52 03-28 20:03 \ud83d\udce1 /Applications/QQ.app", "title": "QQ.app", "autocomplete": "QQ.app", "arg": "/Applications/QQ.app", "type": "file", "match": "QQ app QQ.app", "icon": {"path": "/Applications/QQ.app", "type": "fileicon"}}, {"subtitle": "\ud83d\udd52 04-20 11:04 \ud83d\udce1 /Applications/iTerm.app", "title": "iTerm.app", "autocomplete": "iTerm.app", "arg": "/Applications/iTerm.app", "type": "file", "match": "iTerm app iTerm.app", "icon": {"path": "/Applications/iTerm.app", "type": "fileicon"}}]}
这是截图:https://imgchr.com/i/V5RC26
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'
Because macOS 12.3 removed the bundle of Python 2.7
So the command:
/usr/bin/python xxx
causes the error like this:
/usr/bin/python: No such file or directory
Hi,
is it possible to get rid of the Subtext and the Icons?
It's a nice Gimmick, but personally I found the very distracting.
Cheers - Michael
When I tap "rr while MS Word is the foremost app, it doesn't work.
(Thank you for this awesome workflow, by the way!)
Env:
10.15.6
Alfred:
4.1.1
AlfredWorkflow-Recent-Documents
2.13
Err commnd:
rd、ra、rr
Fine commnd:
rf
commnd rd
err msg:
[11:00:31.197] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[11:00:31.453] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[11:00:31.455] 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
[11:00:31.455] Recent Documents / Apps[Script Filter] [Errno 1] Operation not permitted: '/Users/lei/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentApplications.sfl2'
[11:00:31.456] ERROR: Recent Documents / Apps[Script Filter] JSON error: Invalid value around character 1. in JSON:
[Errno 1] Operation not permitted: '/Users/lei/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentApplications.sfl2'
watiing for response , thanks
譬如 raf pages, 效果等同于pages文件菜单的最近打开文件
How can I exclude a particular file (not a folder)? I added a file path to ExcludedFolders
, but it did not work.
Will the workflow be updated for python3?
macOSVersion=$(sw_vers -productVersion | cut -d '.' -f 1,2)
if [ "$macOSVersion" = "10.14" ] || [ "$macOSVersion" = "10.13" ]; then
MRUfileExt="sfl2"
elif [ "$macOSVersion" = "10.11" ] || [ "$macOSVersion" = "10.12" ]; then
MRUfileExt="sfl"
fi
I debuged the workflow, since I did not get any results. This is the debug output for RD and RA. If needed, I can provide more outputs. I have an M1 Macbook Pro with the latest update (Big Sur 11.2.3)
RF---
[09:29:35.551] Logging Started...
[09:29:44.123] Recent Documents / Apps[Hotkey] Processing complete
[09:29:44.128] Recent Documents / Apps[Hotkey] Passing output '' to Script Filter
[09:29:44.159] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[09:29:44.364] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[09:29:44.364] ERROR: Recent Documents / Apps[Script Filter] Code 1: Traceback (most recent call last):
File "main.py", line 16, in
from mac_alias import Bookmark
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/init.py", line 1, in
from .alias import *
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/alias.py", line 15, in
from . import osx
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/osx.py", line 424, in
_statfs = libc['statfs$INODE64']
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 384, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x1011e9690, statfs$INODE64): symbol not found
--- RA:
[09:32:00.183] Logging Stopped.
[09:32:05.060] Logging Started...
[09:32:09.742] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[09:32:09.948] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[09:32:09.956] ERROR: Recent Documents / Apps[Script Filter] Code 1: Traceback (most recent call last):
File "main.py", line 16, in
from mac_alias import Bookmark
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/init.py", line 1, in
from .alias import *
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/alias.py", line 15, in
from . import osx
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/osx.py", line 424, in
_statfs = libc['statfs$INODE64']
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 384, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x104589690, statfs$INODE64): symbol not found
macOS升级至12.0 Monterey 后,无法使用最近文档,请作者更新,谢谢!
After upgrading MacOS to 12.0 Monterey,I can't use the recent documents. Please upgrade, Thank you!
最近使用的项目调到50个也没用,打开过的文件和文件夹用rd和rf都无法显示,不知道自己到底是哪里没设置好。
rr
sometimes fails for Sublime Text, because the Auto Save Session.sublime_session file is deleted when you quit Sublime Text, and it's not recreated until you open Sublime Text and edit and save a file.
It would be nice if the workflow could fall back to Session.sublime_session if Auto Save Session.sublime_session doesn't exist.
这个想法很赞, 感谢作者! 感觉还有下面这些地方可以改进一下:
如题,更新完新系统后,workflow无法使用
[16:15:01.254] Logging Started...
[16:15:01.764] Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Queuing argument '(null)'
[16:15:01.829] Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Script with argv '(null)' finished
[16:15:01.834] ERROR: Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
[16:15:04.432] Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Queuing argument '(null)'
[16:15:04.478] Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Script with argv '(null)' finished
[16:15:04.482] ERROR: Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Can this be configured to show a list of the most recent files added to a specific folder, such as my Downloads folder?
Alfred动作中没有对Big Sur版本的判断导致ra
,rd
无效,rr
仍有效。现在Big Sur Beta的macOSVersion
为11.0
。
word, excel, powerpoint里使用rr都不行了
find ~/Library/Containers and ~/Library/Application Support/IdeaIC2018.3, can't find the sharedfileslist
I get the following error message in debugger log:
[20:06:01.891] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[20:06:02.301] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[20:06:02.304] ERROR: Recent Documents / Apps[Script Filter] Code 1: Traceback (most recent call last):
File "main.py", line 215, in
allItemsLinkList.extend(itemsLinkList)
TypeError: 'NoneType' object is not iterable
[20:06:02.306] Recent Documents / Apps[Script Filter] Expected str, got bytes
[20:06:02.308] ERROR: Recent Documents / Apps[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:
Expected str, got bytes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.