AppleScript

AppleScript 代码截图生成器

不必离开 Mac,就能把 AppleScript 代码片段变成值得分享的图片。

AppleScript 读起来像英语,这让它在截图里格外好接近,也格外容易在细节上出错。

Codeshot 会根据你粘贴的代码识别 AppleScript,不存在选错语言的问题。下面是同一段代码在内置 30 款主题中的三款下的效果,由应用自身的样式表渲染。

tell application "Codeshot"
    activate
    set theTheme to "Xcode"
    paste the clipboard
    export with scale 2
end tell
GitHub · 深色
tell application "Codeshot"
    activate
    set theTheme to "Xcode"
    paste the clipboard
    export with scale 2
end tell
Solarized · 深色
tell application "Codeshot"
    activate
    set theTheme to "Xcode"
    paste the clipboard
    export with scale 2
end tell
Xcode · 深色

为 AppleScript 选择主题

它的关键字都是普通单词,所以关键字着色强烈的主题在这里比在符号化语法的语言里有用得多。

把尺寸定对

让图片随内容自适应,或锁定一个比例——1:1、4:3、3:2、16:9、9:16、2:3 或 3:4——然后以 1×、2× 或 3× 导出,在 Retina 屏上依然清晰。用 C 直接复制到剪贴板,或用 S 保存。

查看全部 30 款主题对比,或阅读完整流程

为 AppleScript 以及另外 59 种语言打造

一切都在你的 Mac 上完成,代码不会外传。

下载