通过终端在屏幕上以大字体显示文本


8

我可以使用某些应用程序将大文本显示在屏幕中央,例如通讯录(单击电话号码并选择“以大字体显示”)或使用Quicksilver(输入一些文本并选择“大字体”操作) 。

有什么方法可以从终端调用此功能,以通过编写Applescript或bash脚本显示任意大文本?


3
这是一个非常好的问题。
詹森·萨拉兹

Answers:


6

由于您已经安装了QuickSilver

osascript -e 'tell application "Quicksilver" to show large type "your text here"'

您可以使用它来定义bash函数(并放置在~/.profile)中:

function big {
        osascript -e "tell application \"Quicksilver\" to show large type \"$1\""
}

然后您可以通过执行任意字符串调用它

$ big "This will cause large text to appear"

那行得通,但是没有Quicksilver可以做到吗?
Lorin Hochstein

咆哮声支持从命令行进行文本覆盖-即使屏幕上的大多数预设很小,它也是可以自定义的-屏幕文本显示的一面。我会选择QuickSilver,尽管这样可以更精确地获取您要求的格式。
bmike
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.