惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
Blog — PlanetScale
Blog — PlanetScale
V
Visual Studio Blog
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
博客园 - Franky
IT之家
IT之家
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
腾讯CDC
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
人人都是产品经理
人人都是产品经理
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
博客园_首页
G
Google Developers Blog

Alfred

现在没有人用 Alfred 了吗?找教程都找不到了。。。 一直用的学习版 alfred5,发现平均每天调用 90 次,遂淘宝 100 多入正 mega 单设备许可证,顺便给 v 友推荐个 workflow 仓库 Alfred 偶发无响应问题 给 Bob 添加了一个 workflow Alfred 选择了剪切版里的一项后光标移动的问题 Alfred 更新了 v5.5,增加了 grid, text, image, PDF view, 内置 ChatGPT,感觉可以做更强大的 workflow 了 很多网友都说出了我对 Alfred 的心声 推荐一个 Alfred 工作流,用于格式化 json。 分享一个自己开发的 WorkFlow 老哥们, Alfred 中 SQL 格式化的 Workflow,还有能用的吗? Alfred Workflow: OpenAI Token 有效性检测 Alfred 转让 分享一个简洁优雅的 IP 查询 Workflow 120 转一个 alfred 单设备 mega support,大版本永久更新 Alfred 求推荐好用的翻译(中译英)workflows Alfred 结果无法粘贴 Python 写了个列出 Github Star 的 Alfred Workflow 想问下大家关于 Alfred 的使用体验 闲来无事续集 alfred Workflow 工具脚本集合 python3 。可帮写 闲来无事 alfred Workflow 工具脚本帮写 好消息, Alfred 最新版终于有商店了 有现成的豆瓣 workflow?吗 Alfred Gallery 即将推出 有人一起合购 Alfred5 的 Mega Supporter 吗? 收到了 Alfred 5 的推送邮件, 产生了换用 Raycast 的想法 Alfred5-Changelog 整理 #1 v2ex alfred workflow raycast 并不那么完美 Alfred 5 Early Access: Coming Soon 写了一个用 Alfred 加入腾讯会议的 Workflow
改变 Notes 的字体颜色
mobpsycho100 · 2022-01-30 · via Alfred

Notes 是一个很好用的富文本编辑器, 但是缺少 markdown 的一些实用的特性, 例如 code block 和 math mode. 为了在 notes 中模仿 (inline) code block 功能, 我们可以用紫色字体来写代码. 这个 AppleScript 提供了切换字体颜色的功能, 需要配合 Alfred 在 notes 激活的情况下使用(例如绑定快捷键 cmd+shift+c).

预设: 打开 Notes-Format-Font-Show Colors, 切换到 Color Palettes, 设置底部的第一个和第二个快捷颜色(例如黑色和紫色). 下方的 AppleScript 将修改字体颜色 (例如将黑色变为紫色, 或者反过来).

tell application "System Events"
	repeat while not (exists window "Colors" of application process "Notes")
		try
			click menu item "Show Colors" of menu 1 of menu item "Font" of menu 1 of menu bar item "Format" of menu bar 1 of application process "Notes"
		end try
	end repeat
	
	click UI element 3 of toolbar 1 of window "Colors" of application process "Notes"

	set currentColor to value of color well 1 of splitter group 1 of window "Colors" of application process "Notes"
	
	set color1 to value of color well 1 of list 1 of list "favorite swatches" of scroll area 2 of splitter group 1 of window "Colors" of application process "Notes"
	
	set color2 to value of color well 2 of list 1 of list "favorite swatches" of scroll area 2 of splitter group 1 of window "Colors" of application process "Notes"
	
	
	if (currentColor = color1) then
		click color well 2 of list 1 of list "favorite swatches" of scroll area 2 of splitter group 1 of window "Colors" of application process "Notes"
	else
		click color well 1 of list 1 of list "favorite swatches" of scroll area 2 of splitter group 1 of window "Colors" of application process "Notes"
	end if
	
	
	repeat while (exists window "Colors" of application process "Notes")
		try
			click menu item "Hide Colors" of menu 1 of menu item "Font" of menu 1 of menu bar item "Format" of menu bar 1 of application process "Notes"
		end try
	end repeat
	
end tell