V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
demon386
V2EX  ›  macOS

有没什么办法用Command Line向Notification Center发通知?

  •  
  •   demon386 · 2012-07-27 17:39:00 +08:00 · 3477 次点击
    这是一个创建于 4290 天前的主题,其中的信息可能已经有所发展或是发生改变。
    主要想在Emacs里用到,Mountain Lion有提供工具吗?
    9 条回复    1970-01-01 08:00:00 +08:00
    sobigfish
        1
    sobigfish  
       2012-07-27 18:04:52 +08:00
    自己写个midware?
    demon386
        2
    demon386  
    OP
       2012-07-27 18:19:05 +08:00
    @sobigfish Mac开发不熟啊。。。
    tsing
        3
    tsing  
       2012-07-29 12:46:18 +08:00   ❤️ 1
    sectic
        4
    sectic  
       2012-07-29 14:25:54 +08:00
    gem install terminal-notifier
    demon386
        5
    demon386  
    OP
       2012-07-30 12:25:00 +08:00
    @tsing
    @sectic
    感谢推荐。terminal-notifier
    hzlzh
        6
    hzlzh  
       2012-07-30 12:58:34 +08:00
    给你3个思路:
    iTerm2 -> Growl(Growl2会整合NC功能)
    iTerm2 -> Growl -> Hiss -> NC
    直接用冒泡通知:
    http://osxdaily.com/2012/07/17/send-a-notification-badge-to-the-terminal-dock-icon-when-a-task-is-finished
    demon386
        7
    demon386  
    OP
       2012-07-30 13:20:26 +08:00
    @hzlzh
    感谢。不过terminal-notifier已经够我用了。
    leecade
        8
    leecade  
       2012-07-30 14:16:20 +08:00
    levey
        9
    levey  
       2012-07-30 14:24:59 +08:00
    有个python的叫APNS Wrapper
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3283 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 2386ms · UTC 12:37 · PVG 20:37 · LAX 05:37 · JFK 08:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.